]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
bump version number.
authorNathan Scott <nathans@sgi.com>
Tue, 14 Aug 2001 04:04:00 +0000 (04:04 +0000)
committerNathan Scott <nathans@sgi.com>
Tue, 14 Aug 2001 04:04:00 +0000 (04:04 +0000)
VERSION
debian/changelog
doc/CHANGES
mkfs/Makefile
mkfs/xfs_mkfs.c

diff --git a/VERSION b/VERSION
index 0e2eb4a105ad28e3991c7af81738c871a7c32a82..2bb55de7060c3c73cb820f04c18d4c5813001f13 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -3,5 +3,5 @@
 #
 PKG_MAJOR=1
 PKG_MINOR=3
-PKG_REVISION=4
+PKG_REVISION=5
 PKG_BUILD=0
index 0734efd52e8c8099cf8d03b4cd400a4f382c8d9a..ea7799156cc9a98ccebeb6a721b1b25303797773 100644 (file)
@@ -1,3 +1,12 @@
+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
index 57d5a3e4ffa41d0cf3c2bdbddf65599898521216..7fcc1bef1169e12b4cd7a9c519d0a1e1374d0bf8 100644 (file)
@@ -1,3 +1,8 @@
+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
index 622f49c9f6dc74019a7ec069e46665c6589072e4..aecbd837417be2a4035ae33856d3b809451450bd 100644 (file)
@@ -55,7 +55,7 @@ default: $(MAXTRRES).h $(FSTYP) $(LTCOMMAND)
 
 include $(BUILDRULES)
 
-$(MAXTRRES):
+$(MAXTRRES): $(MAXTRRES).o
        $(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(MAXTRLIBS)
 
 $(MAXTRRES).h: $(MAXTRRES)
index 991a3581b1bcb9acc3e486b3a2cf4ffbc80adaf4..45e159c146ee2f072ca48acccd08a31dc466e0f1 100644 (file)
@@ -1382,15 +1382,33 @@ main(int argc, char **argv)
                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.
         */