aboutsummaryrefslogtreecommitdiffstats
path: root/growfs
diff options
context:
space:
mode:
authorNiv Sardi <xaiki@sgi.com>2007-11-16 05:16:34 +0000
committerNiv Sardi <xaiki@sgi.com>2007-11-16 05:16:34 +0000
commit8d537733f52a642d471f6781f32f306241dd4308 (patch)
tree88c6fd294cb53abf2b8a26e13ce07faf9b508385 /growfs
parentcd3b56ffa1955b6a78c7b35c72b16a37cb0fb3a6 (diff)
downloadxfsprogs-dev-8d537733f52a642d471f6781f32f306241dd4308.tar.gz
Default to log, attr, inodes v2, Drop the ability to turn unwritten extents off completly, reduce imaxpct for big filesystems, less AGs for single disks configs.
- Default to log version 2 Change logversion to 2 in xfs_mkfs.c - Default to version 2 attributes. Change attrversion from 0 to 2 in xfs_mkfs.c - Drop the ability to turn unwritten extents off completly unwritten extents on linux are generally a bad idea, this option should not be used. Remove the mount option from xfs_mkfs.c: remove it from option list, remove it from mkfs output. Update xfs.mkfs manpage. - V2 inodes per default, and move DFL bits to XFS_DFL_SB_VERSION_BITS, Activate XFS_SB_VERSION_NLINKBIT per default, which will enable V2 INODES. refactor bits that we want everytime in XFS_DFL_SB_VERSION_BITS. - reduce imaxpct for big filesystems, imaxpct is set to 25% (XFS_DFL_IMAXIMUM_PCT) for FS < 1 TB, then 5% for FS < 50 TB, and then (over 50 TB) 1%. It is implemented as a simple step function in calc_default_imaxpct() - less AGs for single disks configs. get the underlying structure with get_subvol_stripe_wrapper(), and pass sunit | swidth as an argument to calc_default_ag_geometry(). if it is set, we are in single disk, get XFS_AG_MAX_BLOCKS for FS >= 4TB, and calculate ag numbers regarding to that. get 4 AGs for FS < 4TB. we calculate according to blocks or count if we have them, add an assert to ensure we have one of the 2. Merge of master-melb:xfs-cmds:30077a by kenmcd.
Diffstat (limited to 'growfs')
-rw-r--r--growfs/xfs_growfs.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/growfs/xfs_growfs.c b/growfs/xfs_growfs.c
index b029e1b52f..5767f100f0 100644
--- a/growfs/xfs_growfs.c
+++ b/growfs/xfs_growfs.c
@@ -58,7 +58,6 @@ report_info(
int isint,
char *logname,
char *rtname,
- int unwritten,
int lazycount,
int dirversion,
int logversion,
@@ -68,7 +67,7 @@ report_info(
"meta-data=%-22s isize=%-6u agcount=%u, agsize=%u blks\n"
" =%-22s sectsz=%-5u attr=%u\n"
"data =%-22s bsize=%-6u blocks=%llu, imaxpct=%u\n"
- " =%-22s sunit=%-6u swidth=%u blks, unwritten=%u\n"
+ " =%-22s sunit=%-6u swidth=%u blks"
"naming =version %-14u bsize=%-6u\n"
"log =%-22s bsize=%-6u blocks=%u, version=%u\n"
" =%-22s sectsz=%-5u sunit=%u blks, lazy-count=%u\n"
@@ -78,7 +77,7 @@ report_info(
"", geo.sectsize, attrversion,
"", geo.blocksize, (unsigned long long)geo.datablocks,
geo.imaxpct,
- "", geo.sunit, geo.swidth, unwritten,
+ "", geo.sunit, geo.swidth,
dirversion, geo.dirblocksize,
isint ? _("internal") : logname ? logname : _("external"),
geo.blocksize, geo.logblocks, logversion,
@@ -115,7 +114,6 @@ main(int argc, char **argv)
xfs_fsop_geom_t ngeo; /* new fs geometry */
int rflag; /* -r flag */
long long rsize; /* new rt size in fs blocks */
- int unwritten; /* unwritten extent flag */
int lazycount; /* lazy superblock counters */
int xflag; /* -x flag */
char *fname; /* mount point name */
@@ -236,7 +234,6 @@ main(int argc, char **argv)
}
}
isint = geo.logstart > 0;
- unwritten = geo.flags & XFS_FSOP_GEOM_FLAGS_EXTFLG ? 1 : 0;
lazycount = geo.flags & XFS_FSOP_GEOM_FLAGS_LAZYSB ? 1 : 0;
dirversion = geo.flags & XFS_FSOP_GEOM_FLAGS_DIRV2 ? 2 : 1;
logversion = geo.flags & XFS_FSOP_GEOM_FLAGS_LOGV2 ? 2 : 1;
@@ -245,7 +242,7 @@ main(int argc, char **argv)
if (nflag) {
report_info(geo, datadev, isint, logdev, rtdev,
- unwritten, lazycount, dirversion, logversion,
+ lazycount, dirversion, logversion,
attrversion);
exit(0);
}
@@ -282,7 +279,7 @@ main(int argc, char **argv)
}
report_info(geo, datadev, isint, logdev, rtdev,
- unwritten, lazycount, dirversion, logversion,
+ lazycount, dirversion, logversion,
attrversion);
ddsize = xi.dsize;