summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-04-04 09:45:11 +0000
committerbde <bde@FreeBSD.org>2002-04-04 09:45:11 +0000
commit069aa8e324a61f68be3ba5e22bf5fff15ddf4f09 (patch)
tree410f6d4634c111091ab64615734ce800a6dee2ff /sbin/newfs
parent46a753d1acb5a70fd37e979d2b3d2ef154eeb027 (diff)
downloadFreeBSD-src-069aa8e324a61f68be3ba5e22bf5fff15ddf4f09.zip
FreeBSD-src-069aa8e324a61f68be3ba5e22bf5fff15ddf4f09.tar.gz
Fixed some English errors in previous commit.
Fixed some style bugs in the removal of __P(()). Whitespace before "__P((" was not removed.
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/mkfs.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index 4708842..c6c64e6 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -97,17 +97,17 @@ static int randinit;
static daddr_t alloc(int size, int mode);
static long calcipg(long lcpg, long bpcg, off_t *usedbp);
static int charsperline(void);
-static void clrblock (struct fs *, unsigned char *, int);
-static void fsinit (time_t);
+static void clrblock(struct fs *, unsigned char *, int);
+static void fsinit(time_t);
static int ilog2(int);
-static void initcg (int, time_t);
-static int isblock (struct fs *, unsigned char *, int);
-static void iput (struct dinode *, ino_t);
-static int makedir (struct direct *, int);
-static void rdfs (daddr_t, int, char *);
-static void setblock (struct fs *, unsigned char *, int);
-static void wtfs (daddr_t, int, char *);
-static void wtfsflush (void);
+static void initcg(int, time_t);
+static int isblock(struct fs *, unsigned char *, int);
+static void iput(struct dinode *, ino_t);
+static int makedir(struct direct *, int);
+static void rdfs(daddr_t, int, char *);
+static void setblock(struct fs *, unsigned char *, int);
+static void wtfs(daddr_t, int, char *);
+static void wtfsflush(void);
void
mkfs(struct partition *pp, char *fsys, int fi, int fo)
@@ -178,7 +178,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo)
exit(17);
}
if (sblock.fs_fsize < sectorsize) {
- printf("increasing fragment size from %d to sectorsize (%d)\n",
+ printf("increasing fragment size from %d to sector size (%d)\n",
sblock.fs_fsize, sectorsize);
sblock.fs_fsize = sectorsize;
}
@@ -188,12 +188,13 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo)
sblock.fs_bsize = MINBSIZE;
}
if (sblock.fs_bsize < sblock.fs_fsize) {
- printf("increasing block size from %d to fragsize (%d)\n",
+ printf("increasing block size from %d to fragment size (%d)\n",
sblock.fs_bsize, sblock.fs_fsize);
sblock.fs_bsize = sblock.fs_fsize;
}
if (sblock.fs_fsize * MAXFRAG < sblock.fs_bsize) {
- printf("increasing fragsize from %d to block size / %d (%d)\n",
+ printf(
+ "increasing fragment size from %d to block size / %d (%d)\n",
sblock.fs_fsize, MAXFRAG, sblock.fs_bsize / MAXFRAG);
sblock.fs_fsize = sblock.fs_bsize / MAXFRAG;
}
@@ -206,7 +207,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int fo)
sblock.fs_frag = numfrags(&sblock, sblock.fs_bsize);
sblock.fs_fragshift = ilog2(sblock.fs_frag);
if (sblock.fs_frag > MAXFRAG) {
- printf( "SYSERR: fragsize too small %d (block/frag ratio)\n",
+ printf("fragment size %d is still too small (can't happen)\n",
sblock.fs_bsize / MAXFRAG);
exit(21);
}
OpenPOWER on IntegriCloud