]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - db/io.c
xfs_db: don't hardcode 'type data' size at 512b
[thirdparty/xfsprogs-dev.git] / db / io.c
diff --git a/db/io.c b/db/io.c
index 590dd1f82f7bc7f8331e41ba08a5b8eee7e323fd..9b2c6b4cf7e963f0be75670080044a7e1dfd8fe4 100644 (file)
--- a/db/io.c
+++ b/db/io.c
@@ -652,7 +652,8 @@ void
 set_iocur_type(
        const typ_t     *type)
 {
-       int             bb_count = 1;   /* type's size in basic blocks */
+       /* type's size in basic blocks */
+       int             bb_count = BTOBB(mp->m_sb.sb_sectsize);
        int             boff = iocur_top->boff;
 
        /*