]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
set v2 log if log sunit is specified
authorEric Sandeen <sandeen@sgi.com>
Thu, 18 Jul 2002 18:25:04 +0000 (18:25 +0000)
committerEric Sandeen <sandeen@sgi.com>
Thu, 18 Jul 2002 18:25:04 +0000 (18:25 +0000)
doc/CHANGES
man/man8/mkfs.xfs.8
mkfs/xfs_mkfs.c

index cf41e494777235572d84249c842aac948d2bb7ff..b0b4018919a2ccb19e3a8878e85316e85192efb6 100644 (file)
@@ -3,6 +3,8 @@ xfsprogs-2.1.2 (17 July 2002)
          man page.  Also fix suffix handling for data su/sw options
          (disallow unit suffixes on -d sunit,swidth,sw and
          -l sunit).  Add "s" (512-byte sectors) as valid suffix.
+       - Automatically select v2 logs if a log stripe unit is
+         specified.
 
 xfsprogs-2.1.1 (04 July 2002)
        - Build infrastructure updates so that configure options can be
index 1b3d53740771597aeb8a88e8a6a02b67a8a2eed7..9ce80cb661f824ad1d383437d77eaa0962f9c42e 100644 (file)
@@ -349,6 +349,8 @@ Using the
 suboption to specify a version 2 log enables the
 .B sunit
 suboption, and allows the logbsize to be increased beyond 32K.
+Version 2 logs are automatically selected if a log stripe unit
+is specified.  See \f3sunit\f1 and \f3su\f1 suboptions, below.
 .IP
 The
 .B sunit 
@@ -364,6 +366,8 @@ such as software raid5 when the sunit is specified as the filesystem
 block size.
 The equivalent byte value must be a multiple of the filesystem block
 size.
+Version 2 logs are automatically selected if the log \f3su\f1
+suboption is specified.
 .IP
 The
 .B su
@@ -375,6 +379,8 @@ suboption is used to specify the log stripe.
 The suboption value has to be specified in bytes,
 (usually using the \f3s\f1 or \f3b\f1 suffixes).
 This value must be a multiple of the filesystem block size.
+Version 2 logs are automatically selected if the log \f3su\f1
+suboption is specified.
 .TP
 .B \-n
 Naming options.
index b7f6645bbf8a27a592d3d3655566a32cc4f03392..587d80321df3f65b0175bfb86c697a90e6aa604e 100644 (file)
@@ -1236,6 +1236,12 @@ main(int argc, char **argv)
                usage();
        }
 
+       /* if lsu or lsunit was specified, automatically use v2 logs */
+       if (lsu || lsunit) {
+               fprintf(stderr, "log stripe unit specified, using v2 logs\n");
+               logversion = 2;
+       }
+
        calc_stripe_factors(dsu, dsw, lsu, &dsunit, &dswidth, &lsunit);
 
        /* other global variables */