diff options
author | trhodes <trhodes@FreeBSD.org> | 2002-05-16 04:10:46 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2002-05-16 04:10:46 +0000 |
commit | 896f3841bf047ca93766900f8cd8c5852e6a9245 (patch) | |
tree | 0adfec655f17ae1258112946fa8d7d72c9c75f76 /sbin/newfs_msdos | |
parent | 0c40c9d08e198e96b30b9b27d5caea7fce0f7118 (diff) | |
download | FreeBSD-src-896f3841bf047ca93766900f8cd8c5852e6a9245.zip FreeBSD-src-896f3841bf047ca93766900f8cd8c5852e6a9245.tar.gz |
more file system > filesystem
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r-- | sbin/newfs_msdos/newfs_msdos.8 | 20 | ||||
-rw-r--r-- | sbin/newfs_msdos/newfs_msdos.c | 26 |
2 files changed, 23 insertions, 23 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.8 b/sbin/newfs_msdos/newfs_msdos.8 index 3f26ded..8c4a608 100644 --- a/sbin/newfs_msdos/newfs_msdos.8 +++ b/sbin/newfs_msdos/newfs_msdos.8 @@ -30,7 +30,7 @@ .Os .Sh NAME .Nm newfs_msdos -.Nd construct a new MS-DOS (FAT) file system +.Nd construct a new MS-DOS (FAT) filesystem .Sh SYNOPSIS .Nm .Op Fl N @@ -59,7 +59,7 @@ .Sh DESCRIPTION The .Nm -utility creates a FAT12, FAT16, or FAT32 file system on device +utility creates a FAT12, FAT16, or FAT32 filesystem on device .Ar special , using .Xr disktab 5 @@ -70,7 +70,7 @@ to determine geometry, if required. The options are as follow: .Bl -tag -width indent .It Fl N -Don't create a file system: just print out parameters. +Don't create a filesystem: just print out parameters. .It Fl B Ar boot Get bootstrap from file. .It Fl F Ar FAT-type @@ -103,7 +103,7 @@ are (capacities in kilobytes): 160, 180, 320, 360, 640, 720, 1200, .It Fl h Ar heads Number of drive heads. .It Fl i Ar info -Location of the file system info sector (FAT32 only). +Location of the filesystem info sector (FAT32 only). A value of 0xffff signifies no info sector. .It Fl k Ar backup Location of the backup boot sector (FAT32 only). A value @@ -124,9 +124,9 @@ File system size. Number of sectors per track. .El .Sh NOTES -FAT file system parameters occupy a "Boot Sector BPB (BIOS Parameter +FAT filesystem parameters occupy a "Boot Sector BPB (BIOS Parameter Block)" in the first of the "reserved" sectors which precede the actual -file system. For reference purposes, this structure is presented +filesystem. For reference purposes, this structure is presented below. .Bd -literal struct bsbpb { @@ -147,9 +147,9 @@ struct bsbpb { struct bsxbpb { u_int32_t bspf; /* [-a] big sectors per FAT */ u_int16_t xflg; /* control flags */ - u_int16_t vers; /* file system version */ + u_int16_t vers; /* filesystem version */ u_int32_t rdcl; /* root directory start cluster */ - u_int16_t infs; /* [-i] file system info sector */ + u_int16_t infs; /* [-i] filesystem info sector */ u_int16_t bkbs; /* [-k] backup boot sector */ }; .Ed @@ -158,13 +158,13 @@ struct bsxbpb { newfs_msdos /dev/ad0s1 .Ed .Pp -Create a file system, using default parameters, on +Create a filesystem, using default parameters, on .Pa /dev/ad0s1 . .Bd -literal -offset indent newfs_msdos -f 1440 -L foo fd0 .Ed .Pp -Create a standard 1.44M file system, with volume label +Create a standard 1.44M filesystem, with volume label .Ar foo , on .Pa /dev/fd0 . diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index d0085f7..c0fd131 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -116,9 +116,9 @@ struct bsbpb { struct bsxbpb { u_int8_t bspf[4]; /* big sectors per FAT */ u_int8_t xflg[2]; /* FAT control flags */ - u_int8_t vers[2]; /* file system version */ + u_int8_t vers[2]; /* filesystem version */ u_int8_t rdcl[4]; /* root directory start cluster */ - u_int8_t infs[2]; /* file system info sector */ + u_int8_t infs[2]; /* filesystem info sector */ u_int8_t bkbs[2]; /* backup boot sector */ u_int8_t rsvd[12]; /* reserved */ }; @@ -129,7 +129,7 @@ struct bsx { u_int8_t sig; /* extended boot signature */ u_int8_t volid[4]; /* volume ID number */ u_int8_t label[11]; /* volume label */ - u_int8_t type[8]; /* file system type */ + u_int8_t type[8]; /* filesystem type */ }; struct de { @@ -157,7 +157,7 @@ struct bpb { u_int bsec; /* big total sectors */ u_int bspf; /* big sectors per FAT */ u_int rdcl; /* root directory start cluster */ - u_int infs; /* file system info sector */ + u_int infs; /* filesystem info sector */ u_int bkbs; /* backup boot sector */ }; @@ -222,7 +222,7 @@ static void setstr(u_int8_t *, const char *, size_t); static void usage(void); /* - * Construct a FAT12, FAT16, or FAT32 file system. + * Construct a FAT12, FAT16, or FAT32 filesystem. */ int main(int argc, char *argv[]) @@ -324,7 +324,7 @@ main(int argc, char *argv[]) opt_r = argto2(optarg, 1, "reserved sectors"); break; case 's': - opt_s = argto4(optarg, 1, "file system size"); + opt_s = argto4(optarg, 1, "filesystem size"); break; case 'u': opt_u = argto2(optarg, 1, "sectors/track"); @@ -502,7 +502,7 @@ main(int argc, char *argv[]) x1 = bpb.res + rds; x = bpb.bspf ? bpb.bspf : 1; if (x1 + (u_int64_t)x * bpb.nft > bpb.bsec) - errx(1, "meta data exceeds file system size"); + errx(1, "meta data exceeds filesystem size"); x1 += x * bpb.nft; x = (u_int64_t)(bpb.bsec - x1) * bpb.bps * NPB / (bpb.spc * bpb.bps * NPB + fat / BPN * bpb.nft); @@ -517,7 +517,7 @@ main(int argc, char *argv[]) if (cls > x) cls = x; if (bpb.bspf < x2) - warnx("warning: sectors/FAT limits file system to %u clusters", + warnx("warning: sectors/FAT limits filesystem to %u clusters", cls); if (cls < mincls(fat)) errx(1, "%u clusters too few clusters for FAT%u, need %u", cls, fat, @@ -525,7 +525,7 @@ main(int argc, char *argv[]) if (cls > maxcls(fat)) { cls = maxcls(fat); bpb.bsec = x1 + (cls + 1) * bpb.spc - 1; - warnx("warning: FAT type limits file system to %u sectors", + warnx("warning: FAT type limits filesystem to %u sectors", bpb.bsec); } printf("%s: %u sector%s in %u FAT%u cluster%s " @@ -660,7 +660,7 @@ main(int argc, char *argv[]) } /* - * Exit with error if file system is mounted. + * Exit with error if filesystem is mounted. */ static void check_mounted(const char *fname, mode_t mode) @@ -904,7 +904,7 @@ usage(void) fprintf(stderr, "usage: newfs_msdos [ -options ] special [disktype]\n"); fprintf(stderr, "where the options are:\n"); - fprintf(stderr, "\t-N don't create file system: " + fprintf(stderr, "\t-N don't create filesystem: " "just print out parameters\n"); fprintf(stderr, "\t-B get bootstrap from file\n"); fprintf(stderr, "\t-F FAT type (12, 16, or 32)\n"); @@ -918,13 +918,13 @@ usage(void) fprintf(stderr, "\t-e root directory entries\n"); fprintf(stderr, "\t-f standard format\n"); fprintf(stderr, "\t-h drive heads\n"); - fprintf(stderr, "\t-i file system info sector\n"); + fprintf(stderr, "\t-i filesystem info sector\n"); fprintf(stderr, "\t-k backup boot sector\n"); fprintf(stderr, "\t-m media descriptor\n"); fprintf(stderr, "\t-n number of FATs\n"); fprintf(stderr, "\t-o hidden sectors\n"); fprintf(stderr, "\t-r reserved sectors\n"); - fprintf(stderr, "\t-s file system size (sectors)\n"); + fprintf(stderr, "\t-s filesystem size (sectors)\n"); fprintf(stderr, "\t-u sectors/track\n"); exit(1); } |