xfs
[Top] [All Lists]

[PATCH] xfsprogs: fix inadvertent mkfs default change for projid32bit

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfsprogs: fix inadvertent mkfs default change for projid32bit
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Sun, 06 Oct 2013 15:07:20 -0500
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
This commit:

f3edb66a mkfs.xfs: validate options for CRCs up front.

seems to have inadvertently switched to 32bit project IDs by default:

-       int                     projid32bit;
+       int                     projid16bit;
...
-       projid32bit = 0;
+       projid16bit = 0;

Switch back to 16 bit project ID by default, at least until we
intentionally make that change.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index eafbed3..ebab09d 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -965,7 +965,7 @@ main(
        textdomain(PACKAGE);
 
        attrversion = 2;
-       projid16bit = 0;
+       projid16bit = 1;
        blflag = bsflag = slflag = ssflag = lslflag = lssflag = 0;
        blocklog = blocksize = 0;
        sectorlog = lsectorlog = XFS_MIN_SECTORSIZE_LOG;


<Prev in Thread] Current Thread [Next in Thread>