]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: fix compilation without libblkid
authorChristoph Hellwig <hch@lst.de>
Fri, 2 Mar 2012 08:39:19 +0000 (08:39 +0000)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Mar 2012 08:40:09 +0000 (08:40 +0000)
Treat the physical sector as equivalent to the logical one if compiling
without libblkid.

Signed-off-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c

index d0c2eb6e0bd06891925fcb92c289040fba150659..5445b6f0af5d76ee27e152ec442bd315c253c429 100644 (file)
@@ -508,7 +508,8 @@ static void get_topology(
                }
        }
 
-       ft->sectorsize = bsz;
+       ft->lsectorsize = bsz;
+       ft->psectorsize = bsz;
 
        if (xi->rtname && !xi->risfile) {
                int dummy1;