]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix a bug in mkfs - creating version 2 logs, an incorrect stripe unit value
authorNathan Scott <nathans@sgi.com>
Mon, 12 May 2003 06:49:35 +0000 (06:49 +0000)
committerNathan Scott <nathans@sgi.com>
Mon, 12 May 2003 06:49:35 +0000 (06:49 +0000)
was being passed to libxfs_clear_log.
All recent versions of xfs_repair will fix this, however, because xfs_repair
uses the correct stripe unit value.

VERSION
debian/changelog
doc/CHANGES
libxfs/rdwr.c
mkfs/xfs_mkfs.c

diff --git a/VERSION b/VERSION
index 707356708359ed3d35eaabd8624d4dfa3391f045..d8cc09c5c5ae62954b565ffff8054d02c1043526 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -3,5 +3,5 @@
 #
 PKG_MAJOR=2
 PKG_MINOR=4
-PKG_REVISION=9
+PKG_REVISION=10
 PKG_BUILD=0
index 1f1b26491d2e3ff88b7e3915b252e43e679477de..381d3df4fd0f8b55c9895bf461de53b4e01ccaf7 100644 (file)
@@ -1,8 +1,14 @@
+xfsprogs (2.4.10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Nathan Scott <nathans@debian.org>  Mon, 12 May 2003 16:16:49 +1000
+
 xfsprogs (2.4.9-1) unstable; urgency=low
 
   * New upstream release
 
- -- Nathan Scott <nathans@debian.org>  Fri, 02 May 2003 09:34:17 +1000
+ -- Nathan Scott <nathans@debian.org>  Fri,  2 May 2003 09:34:17 +1000
 
 xfsprogs (2.4.4-1) unstable; urgency=low
 
index 828098e7618caaff73caac532a40ac8b15415830..763c85015710be60280639d2c2eb5074188939ad 100644 (file)
@@ -1,4 +1,8 @@
-[cvs]
+xfsprogs-2.4.10 (12 May 2003)
+       - Fix a bug in mkfs - creating version 2 logs, an incorrect
+         stripe unit value was being passed to libxfs_clear_log.
+         All recent versions of xfs_repair will fix this, however,
+         because xfs_repair uses the correct stripe unit value.
        - Fix a bug in xfs_logprint, when dumping a corrupt log.
        - FreeBSD updates from Alexander Kabaev.
 
index eb06eded5e156e671bcf2f79e96f84ea5df97301..258e51b18200c47926ef99c0452c7c74a3c0b580 100644 (file)
@@ -105,7 +105,7 @@ libxfs_log_clear(
                len = 1;
        buf = libxfs_getbuf(device, start, len);
        if (!buf)
-           return -1;
+               return -1;
 
        memset(XFS_BUF_PTR(buf), 0, BBSIZE * len);
        head = (xlog_rec_header_t *)XFS_BUF_PTR(buf);
@@ -147,11 +147,11 @@ libxfs_log_clear(
        }
 
        if (libxfs_writebuf(buf, 0))
-           return -1;
+               return -1;
 
        buf = libxfs_getbuf(device, start + 1, 1);
        if (!buf)
-           return -1;
+               return -1;
 
        /* now a log unmount op */
        memset(XFS_BUF_PTR(buf), 0, BBSIZE);
@@ -169,7 +169,7 @@ libxfs_log_clear(
                sizeof(magic));
 
        if (libxfs_writebuf(buf, 0))
-           return -1;
+               return -1;
 
        return 0;
 }
index 3bdf1d7284d2af9632aa25ac3636c4aafdb04800..1e02afd19adc680b78441dcf8f4bab73a5765271 100644 (file)
@@ -1849,9 +1849,10 @@ _("log stripe unit (%d bytes) is too large for kernel to handle (max 256k)\n"),
        sbp->sb_width = dswidth;
        if (dirversion == 2)
                sbp->sb_dirblklog = dirblocklog - blocklog;
-       if (logversion == 2)    /* This is stored in bytes */
-               sbp->sb_logsunit = (lsunit == 0) ? 1 : XFS_FSB_TO_B(mp, lsunit);
-       else
+       if (logversion == 2) {  /* This is stored in bytes */
+               lsunit = (lsunit == 0) ? 1 : XFS_FSB_TO_B(mp, lsunit);
+               sbp->sb_logsunit = lsunit;
+       } else
                sbp->sb_logsunit = 0;
        if (iaflag) {
                sbp->sb_inoalignmt = XFS_INODE_BIG_CLUSTER_SIZE >> blocklog;