summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/journal/geom_journal_ufs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/geom/class/journal/geom_journal_ufs.c b/sbin/geom/class/journal/geom_journal_ufs.c
index c847a88..0497beb 100644
--- a/sbin/geom/class/journal/geom_journal_ufs.c
+++ b/sbin/geom/class/journal/geom_journal_ufs.c
@@ -70,9 +70,9 @@ g_journal_ufs_using_last_sector(const char *prov)
fs = read_superblock(prov);
if (fs == NULL)
return (0);
- /* Provider size in 512 bytes blocks. */
- psize = g_get_mediasize(prov) / DEV_BSIZE;
- /* File system size in 512 bytes blocks. */
- fssize = fsbtodb(fs, dbtofsb(fs, psize));
- return (psize == fssize);
+ /* Provider size in 512 bytes blocks. */
+ psize = g_get_mediasize(prov) / DEV_BSIZE;
+ /* File system size in 512 bytes blocks. */
+ fssize = fsbtodb(fs, fs->fs_size);
+ return (psize <= fssize);
}
OpenPOWER on IntegriCloud