+xfsprogs (1.3.5-0) unstable; urgency=low
+
+ * Upstream bugfix release; fixes listed below
+ * Fix bug in xfs_db bit handling on big endian platforms
+ * Fix mkfs.xfs bug related to too-small final allocation group
+ * Fix signedness bug in DMAPI ioctl structure definition
+
+ -- Nathan Scott <nathans@debian.org> Mon, 13 Aug 2001 09:38:27 +1000
+
xfsprogs (1.3.4-0) unstable; urgency=low
* Upstream bugfix release; fixes listed below
+xfsprogs-1.3.5 (13 August 2001)
+ - fix bug in xfs_db bit handling on big endian platforms
+ - fix mkfs bug related to too-small final allocation group
+ - fix signedness bug in DMAPI ioctl structure definition
+
xfsprogs-1.3.4 (04 August 2001)
- fix endian bug in xfs_db "frag" command
- small configure script changes to allow cross compilation
agsize = XFS_AG_MAX_BLOCKS(blocklog);
agcount = dblocks / agsize + (dblocks % agsize != 0);
}
+
+ /*
+ * if user set the AG size, and if the last AG is too small,
+ * reduce the filesystem size and drop the blocks.
+ */
+ if (!daflag &&
+ (dblocks % agsize < XFS_AG_MIN_BLOCKS(blocklog))) {
+ dblocks -= dblocks % agsize;
+ }
+
/*
* If agcount was not specified, and agsize is larger than
* we'd like, make it the size we want.
*/
if (!daflag && !dasize &&
- (agsize > XFS_AG_BEST_BLOCKS(blocklog, dblocks))) {
- agsize = XFS_AG_BEST_BLOCKS(blocklog, dblocks);
+ (agsize > XFS_AG_BEST_BLOCKS(blocklog,dblocks))) {
+ agsize = XFS_AG_BEST_BLOCKS(blocklog,dblocks);
+ /*
+ * If the last AG is too small, reduce the filesystem size
+ * and drop the blocks.
+ */
+ if (dblocks % agsize < XFS_AG_MIN_BLOCKS(blocklog)) {
+ dblocks -= dblocks % agsize;
+ }
agcount = dblocks / agsize + (dblocks % agsize != 0);
}
+
/*
* If agcount is too large, make it smaller.
*/