diff options
author | trhodes <trhodes@FreeBSD.org> | 2002-08-21 18:11:48 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2002-08-21 18:11:48 +0000 |
commit | 136be46680c6e4a18cc827da991d4f9a0de29cba (patch) | |
tree | b5ee0aba66633a4e0e47097e4f383c253a87887a /sbin/growfs | |
parent | 9618da3e35435c433d8086d65af15f716ffe32ec (diff) | |
download | FreeBSD-src-136be46680c6e4a18cc827da991d4f9a0de29cba.zip FreeBSD-src-136be46680c6e4a18cc827da991d4f9a0de29cba.tar.gz |
s/filesystem/file system/g as discussed on -developers
Diffstat (limited to 'sbin/growfs')
-rw-r--r-- | sbin/growfs/debug.c | 2 | ||||
-rw-r--r-- | sbin/growfs/growfs.8 | 28 | ||||
-rw-r--r-- | sbin/growfs/growfs.c | 38 |
3 files changed, 34 insertions, 34 deletions
diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c index d178a26..3fe263f 100644 --- a/sbin/growfs/debug.c +++ b/sbin/growfs/debug.c @@ -97,7 +97,7 @@ dbg_close(void) /* ****************************************************** dbg_dump_hex ***** */ /* - * Dump out a full filesystem block in hex. + * Dump out a full file system block in hex. */ void dbg_dump_hex(struct fs *sb, const char *comment, unsigned char *mem) diff --git a/sbin/growfs/growfs.8 b/sbin/growfs/growfs.8 index ef23cda..59bf016 100644 --- a/sbin/growfs/growfs.8 +++ b/sbin/growfs/growfs.8 @@ -42,7 +42,7 @@ .Os .Sh NAME .Nm growfs -.Nd grow size of an existing ufs filesystem +.Nd grow size of an existing ufs file system .Sh SYNOPSIS .Nm .Op Fl Ny @@ -62,17 +62,17 @@ If you are using volumes you must enlarge them by using .Xr vinum 8 . The .Nm -utility extends the size of the filesystem on the specified special file. +utility extends the size of the file system on the specified special file. Currently .Nm -can only enlarge unmounted filesystems. -Do not try enlarging a mounted filesystem, your system may panic and you will -not be able to use the filesystem any longer. +can only enlarge unmounted file systems. +Do not try enlarging a mounted file system, your system may panic and you will +not be able to use the file system any longer. Most of the .Xr newfs 8 options cannot be changed by .Nm . -In fact, you can only increase the size of the filesystem. +In fact, you can only increase the size of the file system. Use .Xr tunefs 8 for other changes. @@ -81,8 +81,8 @@ The following options are available: .Bl -tag -width indent .It Fl N .Dq Test mode . -Causes the new filesystem parameters to be printed out without actually -enlarging the filesystem. +Causes the new file system parameters to be printed out without actually +enlarging the file system. .It Fl y .Dq Expert mode . Usually @@ -97,12 +97,12 @@ So use this option with great care! .It Fl s Ar size Determines the .Ar size -of the filesystem after enlarging in sectors. +of the file system after enlarging in sectors. This value defaults to the size of the raw partition specified in .Ar special (in other words, .Nm -will enlarge the filesystem to the size of the entire partition). +will enlarge the file system to the size of the entire partition). .El .Sh EXAMPLES .Dl growfs -s 4194304 /dev/vinum/testvol @@ -121,12 +121,12 @@ There may be cases on .Fx 3.x only, when .Nm -does not recognize properly whether or not the filesystem is mounted and +does not recognize properly whether or not the file system is mounted and exits with an error message. Then please use .Nm .Fl y -if you are sure that the filesystem is not mounted. +if you are sure that the file system is not mounted. It is also recommended to always use .Xr fsck 8 after enlarging (just to be on the safe side). @@ -159,8 +159,8 @@ on the first cylinder group to verify that in the CYLINDER SUMMARY (internal cs) of the CYLINDER GROUP .Em cgr0 has enough blocks. -As a rule of thumb for default filesystem parameters one block is needed for -every 2 GB of total filesystem size. +As a rule of thumb for default file system parameters one block is needed for +every 2 GB of total file system size. .Pp Normally .Nm diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index 48cfad9..2db3430 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -150,7 +150,7 @@ static void indirchk(ufs_lbn_t, ufs_lbn_t, ufs2_daddr_t, ufs_lbn_t, /* ************************************************************ growfs ***** */ /* - * Here we actually start growing the filesystem. We basically read the + * Here we actually start growing the file system. We basically read the * cylinder summary from the first cylinder group as we want to update * this on the fly during our various operations. First we handle the * changes in the former last cylinder group. Afterwards we create all new @@ -222,7 +222,7 @@ growfs(int fsi, int fso, unsigned int Nflag) updjcg(osblock.fs_ncg-1, utime, fsi, fso, Nflag); /* - * Dump out summary information about filesystem. + * Dump out summary information about file system. */ # define B2MBFACTOR (1 / (1024.0 * 1024.0)) printf("growfs: %.1fMB (%qd sectors) block size %d, fragment size %d\n", @@ -424,7 +424,7 @@ initcg(int cylno, time_t utime, int fso, unsigned int Nflag) if (acg.cg_nextfreeoff > sblock.fs_cgsize) { /* * This should never happen as we would have had that panic - * already on filesystem creation + * already on file system creation */ errx(37, "panic: cylinder group too big"); } @@ -656,7 +656,7 @@ cond_bl_upd(ufs2_daddr_t *block, struct gfs_bpp *field, int fsi, int fso, /* ************************************************************ updjcg ***** */ /* * Here we do all needed work for the former last cylinder group. It has to be - * changed in any case, even if the filesystem ended exactly on the end of + * changed in any case, even if the file system ended exactly on the end of * this group, as there is some slightly inconsistent handling of the number * of cylinders in the cylinder group. We start again by reading the cylinder * group from disk. If the last block was not fully available, we first handle @@ -764,7 +764,7 @@ updjcg(int cylno, time_t utime, int fsi, int fso, unsigned int Nflag) * the rotational layout tables and the cluster summary. This is * also done per fragment for the first new block if the old file * system end was not on a block boundary, per fragment for the new - * last block if the new filesystem end is not on a block boundary, + * last block if the new file system end is not on a block boundary, * and per block for all space in between. * * Handle the first new block here if it was partially available @@ -788,7 +788,7 @@ updjcg(int cylno, time_t utime, int fsi, int fso, unsigned int Nflag) /* * Check if the fragment just created could join an * already existing fragment at the former end of the - * filesystem. + * file system. */ if(isblock(&sblock, cg_blksfree(&acg), ((osblock.fs_size - cgbase(&sblock, cylno))/ @@ -915,7 +915,7 @@ updjcg(int cylno, time_t utime, int fsi, int fso, unsigned int Nflag) * Option (1) is considered to be less intrusive to the structure of the file- * system. So we try to stick to that whenever possible. If there is not enough * space in the cylinder group containing the cylinder summary we have to use - * method (2). In case of active snapshots in the filesystem we probably can + * method (2). In case of active snapshots in the file system we probably can * completely avoid implementing copy on write if we stick to method (2) only. */ static void @@ -1274,7 +1274,7 @@ updcsloc(time_t utime, int fsi, int fso, unsigned int Nflag) /* * No cluster handling is needed here, as there was at least * one fragment in use by the cylinder summary in the old - * filesystem. + * file system. * No block-free counter handling here as this block was not * a free block. */ @@ -1582,7 +1582,7 @@ wtfs(ufs2_daddr_t bno, size_t size, void *bf, int fso, unsigned int Nflag) /* * Here we allocate a free block in the current cylinder group. It is assumed, * that acg contains the current cylinder group. As we may take a block from - * somewhere in the filesystem we have to handle cluster summary here. + * somewhere in the file system we have to handle cluster summary here. */ static ufs2_daddr_t alloc(void) @@ -1886,9 +1886,9 @@ charsperline(void) /* ************************************************************** main ***** */ /* * growfs(8) is a utility which allows to increase the size of an existing - * ufs filesystem. Currently this can only be done on unmounted file system. + * ufs file system. Currently this can only be done on unmounted file system. * It recognizes some command line options to specify the new desired size, - * and it does some basic checkings. The old filesystem size is determined + * and it does some basic checkings. The old file system size is determined * and after some more checks like we can really access the new last block * on the disk etc. we calculate the new parameters for the superblock. After * having done this we just call growfs() which will do the work. Before @@ -1900,11 +1900,11 @@ charsperline(void) * are lucky, then we only have to handle our blocks to be relocated in that * way. * Also we have to consider in what order we actually update the critical - * data structures of the filesystem to make sure, that in case of a disaster + * data structures of the file system to make sure, that in case of a disaster * fsck(8) is still able to restore any lost data. * The foreseen last step then will be to provide for growing even mounted * file systems. There we have to extend the mount() system call to provide - * userland access to the filesystem locking facility. + * userland access to the file system locking facility. */ int main(int argc, char **argv) @@ -2030,7 +2030,7 @@ main(int argc, char **argv) } /* - * Check if that partition looks suited for growing a filesystem. + * Check if that partition looks suited for growing a file system. */ if (pp->p_size < 1) { errx(1, "partition is unavailable"); @@ -2092,7 +2092,7 @@ main(int argc, char **argv) if(ExpertFlag == 0) { for(j=0; j<FSMAXSNAP; j++) { if(sblock.fs_snapinum[j]) { - errx(1, "active snapshot found in filesystem\n" + errx(1, "active snapshot found in file system\n" " please remove all snapshots before " "using growfs\n"); } @@ -2114,10 +2114,10 @@ main(int argc, char **argv) } } - printf("new filesystemsize is: %d frags\n", sblock.fs_size); + printf("new file systemsize is: %d frags\n", sblock.fs_size); /* - * Try to access our new last block in the filesystem. Even if we + * Try to access our new last block in the file system. Even if we * later on realize we have to abort our operation, on that block * there should be no data, so we can't destroy something yet. */ @@ -2126,7 +2126,7 @@ main(int argc, char **argv) /* * Now calculate new superblock values and check for reasonable - * bound for new filesystem size: + * bound for new file system size: * fs_size: is derived from label or user input * fs_dsize: should get updated in the routines creating or * updating the cylinder groups on the fly @@ -2135,7 +2135,7 @@ main(int argc, char **argv) */ /* - * Update the number of cylinders and cylinder groups in the filesystem. + * Update the number of cylinders and cylinder groups in the file system. */ if (sblock.fs_magic == FS_UFS1_MAGIC) { sblock.fs_old_ncyl = |