Module Name: src
Committed By: perseant
Date: Fri Sep 13 05:18:50 UTC 2024
Modified Files:
src/sbin/newfs_exfatfs [perseant-exfatfs]: newfs.c newfs_exfatfs.8
Log Message:
Document newfs_exfatfs(8) options in usage() and in manual page.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/sbin/newfs_exfatfs/newfs.c
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/sbin/newfs_exfatfs/newfs_exfatfs.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/newfs_exfatfs/newfs.c
diff -u src/sbin/newfs_exfatfs/newfs.c:1.1.2.5 src/sbin/newfs_exfatfs/newfs.c:1.1.2.6
--- src/sbin/newfs_exfatfs/newfs.c:1.1.2.5 Tue Aug 13 05:37:24 2024
+++ src/sbin/newfs_exfatfs/newfs.c Fri Sep 13 05:18:50 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: newfs.c,v 1.1.2.5 2024/08/13 05:37:24 perseant Exp $ */
+/* $NetBSD: newfs.c,v 1.1.2.6 2024/09/13 05:18:50 perseant Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
#if 0
static char sccsid[] = "@(#)newfs.c 8.5 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: newfs.c,v 1.1.2.5 2024/08/13 05:37:24 perseant Exp $");
+__RCSID("$NetBSD: newfs.c,v 1.1.2.6 2024/09/13 05:18:50 perseant Exp $");
#endif
#endif /* not lint */
@@ -194,9 +194,6 @@ main(int argc, char **argv)
case 'q': /* quiet */
++Qflag;
break;
- case 'w': /* Overwrite existing superblocks without reading */
- Wflag = 1;
- break;
case 's': /* size in DEV_BSIZE units */
fssize = strsuftoi64("file system size", optarg,
0, INT64_MAX, &byte_sized);
@@ -207,6 +204,9 @@ main(int argc, char **argv)
case 'v': /* verbose */
Vflag++;
break;
+ case 'w': /* Overwrite existing superblocks without reading */
+ Wflag = 1;
+ break;
case 'x': /* take xbootcode from file */
xbootcodefile = optarg;
break;
@@ -444,6 +444,9 @@ main(int argc, char **argv)
}
} else {
default_upcase_table(&uctable, &uctablesize);
+ if (Vflag)
+ printf("Using default upcase table of %zd bytes\n",
+ uctablesize);
}
/* Make the filesystem */
@@ -561,8 +564,11 @@ usage(void)
fprintf(stderr, "\t-h cluster heap alignment in bytes\n");
fprintf(stderr, "\t-n number of FATs (1 or 2)\n");
fprintf(stderr, "\t-o partition offset in sectors\n");
+ fprintf(stderr, "\t-q (quiet)\n");
fprintf(stderr, "\t-s file system size in sectors\n");
fprintf(stderr, "\t-u upcase table file\n");
fprintf(stderr, "\t-v (verbose)\n");
+ fprintf(stderr, "\t-w (ignore and overwrite existing parameters)\n");
+ fprintf(stderr, "\t-x extended bootcode file\n");
exit(1);
}
Index: src/sbin/newfs_exfatfs/newfs_exfatfs.8
diff -u src/sbin/newfs_exfatfs/newfs_exfatfs.8:1.1.2.3 src/sbin/newfs_exfatfs/newfs_exfatfs.8:1.1.2.4
--- src/sbin/newfs_exfatfs/newfs_exfatfs.8:1.1.2.3 Fri Aug 2 00:23:21 2024
+++ src/sbin/newfs_exfatfs/newfs_exfatfs.8 Fri Sep 13 05:18:50 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: newfs_exfatfs.8,v 1.1.2.3 2024/08/02 00:23:21 perseant Exp $
+.\" $NetBSD: newfs_exfatfs.8,v 1.1.2.4 2024/09/13 05:18:50 perseant Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -73,6 +73,9 @@ If not specified, the FAT alignment will
Specify the file system label. The default label is "NONE GIVEN".
.It Fl N
Do not actually create the filesystem.
+.It Fl n Ar number-of-fats
+Create the filesystem with the given number of file allocation tables.
+Valid values are 1 and 2.
.It Fl o Ar partition-offset
The offset of this partition from the beginning of the disk, in sectors.
The default value is taken from the disklabel.
@@ -96,6 +99,9 @@ Do not attempt to read the existing supe
By default the existing superblock will be read and the
existing file system parameters will be used unless
overridden by command-line arguments.
+.It Fl x Ar extended-bootcode-file
+Use the extended bootcode contained in the given file.
+If not specified, the extended boot blocks will not be written.
.El
.Sh SEE ALSO
.Xr disktab 5 ,