fsize
size_t fsize = (size_t)fs->st_size;
p = mmap(NULL, fsize, PROT_READ, MAP_FILE|MAP_SHARED,
remainder = fsize;
if (write(to_fd, &p[fsize - remainder],
if (munmap(p, fsize) < 0) {
uint32_t fsize; /* FFS, ADOS:
#define p_fsize __partition_u2.fsize
unsigned long fsize;
fsize = strtoul(val, &endp, 10);
if ((fsize == ULONG_MAX && errno == ERANGE) || *endp) {
if (fsize > (unsigned long) 65535 * 65464) {
tftp_tsize = fsize;
extern int fsize; /* fragment size */
sblock.fs_fsize = fsize;
int fsize = 0; /* fragment size */
fsize = strsuftoi64("fragment size",
if (fsize == 0) {
fsize = bsize / DFL_FRAG_BLK;
if (fsize <= 0) {
fsize = APPLEUFS_DFL_FRAGSIZE;
fsize = S_DFL_FRAGSIZE;
fsize = M_DFL_FRAGSIZE;
fsize = L_DFL_FRAGSIZE;
fsize = LL_DFL_FRAGSIZE;
if (fsize < sectorsize)
fsize = sectorsize;
bsize = DFL_FRAG_BLK * fsize;
if (isappleufs && (fsize < APPLEUFS_DFL_FRAGSIZE)) {
fsize, APPLEUFS_DFL_FRAGSIZE);
density = NFPI * fsize;
extern uint fsize; /* fragment size */
if (!powerof2(fsize)) {
fsize);
if (fsize < sectorsize) {
fsize, sectorsize);
if (bsize != fsize) {
bsize, fsize);
sblock.e2fs.e2fs_fsize = ilog2(fsize) - LOG_MINBSIZE;
fssize, bsize, fsize);
uint fsize = 0; /* fragment size */
fsize = strsuftoi64("fragment size",
bsize = fsize;
if (fsize == 0)
fsize = bsize;
int fsize; /* Fragment size */
if (!(fsize = frag_size)) {
fsize = DFL_LFSFRAG;
fsize = SMALL_LFSFRAG;
if (fsize > bsize) {
fsize = bsize;
ibsize = fsize;
if (ibsize <= 0 || ibsize % fsize || ibsize > bsize)
if (bsize != DFL_LFSBLOCK || fsize != DFL_LFSFRAG) {
lfs_sb_setfsize(fs, fsize);
lfs_sb_setffmask(fs, fsize - 1);
lfs_sb_setffshift(fs, lfs_log2(fsize));
if (1 << lfs_sb_getffshift(fs) != fsize)
fatal("%d: frag size not a power of 2", fsize);
if (ssize % fsize) {
ssize = roundup(ssize, fsize);
lfs_sb_setsumsize(fs, fsize);
lfs_sb_setfsbtodb(fs, lfs_log2(fsize / secsize));
label_fsb = lfs_btofsb(fs, roundup(LFS_LABELPAD, fsize));
sb_fsb = lfs_btofsb(fs, roundup(LFS_SBPAD, fsize));
fprintf(stderr,"Using segment size %d, block size %d, frag size %d.\n", ssize, bsize, fsize);
fsize = strsuftoi64("fragment size", optarg, LFS_MINBLOCKSIZE, INT64_MAX, NULL);
r = make_lfs(fso, secsize, &dkw, minfree, bsize, fsize, lfs_segsize,
int fsize = 0; /* fragment size */
pp->p_fsize = pbp->e.fsize;
set_boot_args(int boot_howto, u_long fstart, u_long fsize, u_long csize,
boot_fphysize = fsize;
#define STATIC_NESTED_NOPROFILE(x, fsize, retpc) \
.frame sp, fsize, retpc
#define NESTED_NOPROFILE(x, fsize, retpc) \
STATIC_NESTED_NOPROFILE(x, fsize, retpc)
#define NESTED(x, fsize, retpc) \
NESTED_NOPROFILE(x, fsize, retpc); \
#define STATIC_NESTED(x, fsize, retpc) \
STATIC_NESTED_NOPROFILE(x, fsize, retpc); \
#define NON_LEAF(x, fsize, retpc) NESTED(x, fsize, retpc)
#define NNON_LEAF(x, fsize, retpc) NESTED_NOPROFILE(x, fsize, retpc)
pp->p_fsize = pbp->e.fsize;
int fsize, rndfsize;
fsize = sizeof(struct linux_rt_sigframe);
rndfsize = ((fsize + 15) / 16) * 16;
error = copyout((void *)&sigframe, (void *)sfp, fsize);
int fsize, rndfsize;
fsize = sizeof(struct linux_sigframe);
rndfsize = ((fsize + 15) / 16) * 16;
error = copyout((void *)&sigframe, (void *)sfp, fsize);
uint32_t reg, fsize;
fsize = roundup(sc->age_max_frame_size, sizeof(uint64_t));
(((fsize / sizeof(uint64_t)) <<
hdr->fsize = le32toh(hdr->fsize);
if (size < sizeof(struct iwi_firmware_hdr) + hdr->bsize + hdr->usize + hdr->fsize) {
kfw->main_size = hdr->fsize;
uint32_t fsize; /* size of firmware image */
u_long fsize; /* (f) size of file in bytes */
ap->fsize = adoswordn(bp, ap->nwords - 47);
ap->fsize = namlen;
ap->fsize = adoswordn(bp, ap->nwords - 47);
uvm_vnp_setsize(vp, ap->fsize);
fblks = howmany(ap->fsize, amp->dbsize);
vap->va_size = ap->fsize;
if (uio->uio_offset >= ap->fsize)
vsize_t bytelen = MIN(ap->fsize - uio->uio_offset,
diff = ap->fsize - uio->uio_offset;
uint64_t fsize; /* logical size of file */
fsize = hp->h_rec.file.rsrc_fork.logical_size;
fsize = hp->h_rec.file.data_fork.logical_size;
if (uio->uio_resid == 0 || uio->uio_offset >= fsize)
len = MIN(uio->uio_resid, fsize - uio->uio_offset);
static off_t fsize(DOS_FS *, struct direntry *);
if ((size = fsize(f->fs, &f->de)) == -1)
if ((sb->st_size = fsize(f->fs, &f->de)) == -1)
uint64_t fsize;
if ((error = rumpuser_getfileinfo(hostpath, &fsize, &hft)) != 0)
size = fsize;
if (begin > fsize)
size = fsize - begin;
if (begin + size > fsize)
uint64_t fsize;
if ((error = rumpuser_getfileinfo(newpath, &fsize, &hft)) != 0){
NODEV, fsize, true);
uint32_t fsize; /* FFS, ADOS: filesystem basic fragment size */
#define p_fsize __partition_u2.fsize
uint32_t fsize;
uint32_t fsize; /* 20: file system block size */
LFS_DEF_SB_ACCESSOR(uint32_t, fsize)
uint64_t fsize;
if (rumpuser_getfileinfo(MYCDISO, &fsize, &ft, &error))
mycdsize = fsize / CDBLOCKSIZE;
if (fsize(nf) == 0) {
if (fsize(fp) == 0)
if (fsize(fbuf) == 0) {
mp->m_size = fsize(fp);
off_t fsize(FILE *);
mailsize = fsize(ibuf);
newsize = fsize(ibuf);
if (fsize(fi)) {
if (fsize(mtf) == 0) {
uint32_t fsize; /* FFS, ADOS:
#define p_fsize __partition_u2.fsize
init_progress(FILE *to, char *f, off_t fsize, off_t restart)
filesize = fsize;
{ 'f', "fsize", &ffs_opts->fsize, OPT_INT32,
ffs_opts->fsize= -1;
if (ffs_opts->fsize == -1)
ffs_opts->fsize = MAX(DFL_FRAGSIZE, fsopts->sectorsize);
ffs_opts->bsize = MIN(DFL_BLKSIZE, 8 * ffs_opts->fsize);
fs->bsize, fs->fsize, fs->cpg, fs->density);
fsopts->size += roundup((x), ffs_opts->fsize); \
int fsize; /* fragment size */
static int fsize; /* fragment size */
fsize = ffs_opts->fsize;
sblock.fs_fsize = fsize;