#
PKG_MAJOR=1
PKG_MINOR=2
-PKG_REVISION=3
+PKG_REVISION=4
PKG_BUILD=0
+xfsprogs (1.2.4) unstable; urgency=low
+
+ * Add -L option to mkfs.xfs (filesystem label)
+
+ -- Nathan Scott <nathans@debian.org> Tue, 1 May 2001 14:03:14 +1000
+
xfsprogs (1.2.3) unstable; urgency=low
* Add dquot and quotaoff log item support into xfs_logprint
+xfsprogs-1.2.4 (01 May 2001)
+ - added -L option to mkfs.xfs (filesystem label)
+
xfsprogs-1.2.3 (27 April 2001)
- add dquot and quotaoff log item support into xfs_logprint
- fix logprint core dump reporting AGI in "continue"'d transactions
mkfs.xfs \- construct an XFS filesystem
.SH SYNOPSIS
.nf
-\f3mkfs.xfs\f1 [ \f3\-b\f1 subopt=value ] \c
-[ \f3\-d\f1 subopt[=value] ] [ \f3\-i\f1 subopt=value ]
- [ \f3\-l\f1 subopt[=value] ] \c
-[ \f3\-n\f1 subopt[=value] ] \c
-[ \f3\-p\f1 protofile ] [ \f3\-q\f1 ]
- [ \f3\-r\f1 subopt[=value] ] [ \f3\-C\f1 ] device
+\f3mkfs.xfs\f1 [ \f3\-b\f1 subopt=value ] [ \f3\-d\f1 subopt[=value] ]
+ [ \f3\-i\f1 subopt=value ] [ \f3\-l\f1 subopt[=value] ]
+ [ \f3\-n\f1 subopt[=value] ] [ \f3\-p\f1 protofile ] [ \f3\-q\f1 ]
+ [ \f3\-r\f1 subopt[=value] ] [ \f3\-C\f1 ] [ \f3\-L\f1 label ] device
.fi
.SH DESCRIPTION
.I mkfs.xfs
necessary, this switch may be used to disable the safeguards. Due to the
potential for user-error causing corrupted filesystems or other on-disk
data corruption, we strongly discourage use of this switch in normal operation.
+.TP
+\f3\-L\f1 \f2label\f1
+Set the filesystem label.
+XFS filesystem labels can be at most 12 characters long; if
+.I label
+is longer than 12 characters,
+.I mkfs.xfs
+will not proceed with creating the filesystem. Refer to the
+.IR mount (8)
+and
+.IR xfs_admin (8)
+manual entries for additional information.
.SH SEE ALSO
-mkfs(8).
+mkfs(8),
+mount(8),
+xfs_admin(8).
.SH BUGS
With a prototype file, it is not possible to specify hard links.
int ipflag;
int isflag;
int isize;
+ char *label = NULL;
int laflag;
int lalign;
int ldflag;
force_fs_overwrite = 0;
worst_freelist = 0;
- while ((c = getopt(argc, argv, "b:d:i:l:n:p:qr:CfV")) != EOF) {
+ while ((c = getopt(argc, argv, "b:d:i:l:L:n:p:qr:CfV")) != EOF) {
switch (c) {
case 'C':
do_overlap_checks = 0;
}
}
break;
+ case 'L':
+ if (strlen(optarg) > sizeof(sbp->sb_fname))
+ illegal(optarg, "L");
+ label = optarg;
+ break;
case 'n':
p = optarg;
while (*p != '\0') {
}
} else
logstart = 0;
+ if (label)
+ strncpy(sbp->sb_fname, label, sizeof(sbp->sb_fname));
sbp->sb_magicnum = XFS_SB_MAGIC;
sbp->sb_blocksize = blocksize;
sbp->sb_dblocks = dblocks;
/* inode size */ [-i log=n|perblock=n|size=num,maxpct=n]\n\
/* log subvol */ [-l agnum=n,internal,size=num,logdev=xxx]\n\
/* naming */ [-n log=n|size=num|version=n]\n\
+/* label */ [-L label (maximum 12 characters)]\n\
/* prototype file */ [-p fname]\n\
/* quiet */ [-q]\n\
/* version */ [-V]\n\
/* realtime subvol */ [-r extsize=num,size=num,rtdev=xxx]\n\
devicename\n\
devicename is required unless -d name=xxx is given\n\
-internal 1000 block log is default unless overridden or using a volume\
+internal 1000 block log is default unless overridden or using a volume\n\
manager with log\n\
num is xxx (bytes), or xxxb (blocks), or xxxk (xxx KB), or xxxm (xxx MB)\n\
value is xxx (512 blocks)\n",