svn commit: r245659 - stable/9/sbin/geom/class/journal
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 19 06:17:27 UTC 2013
Author: kib
Date: Sat Jan 19 06:17:27 2013
New Revision: 245659
URL: http://svnweb.freebsd.org/changeset/base/245659
Log:
MFC r245072:
Do not round up the size of the UFS filesystem to the fragment size
when comparing its size with the size of the media, to determine if
the last disk block is unused.
MFC r245074:
Use tabs for indentation.
Modified:
stable/9/sbin/geom/class/journal/geom_journal_ufs.c
Directory Properties:
stable/9/sbin/geom/ (props changed)
Modified: stable/9/sbin/geom/class/journal/geom_journal_ufs.c
==============================================================================
--- stable/9/sbin/geom/class/journal/geom_journal_ufs.c Sat Jan 19 06:04:26 2013 (r245658)
+++ stable/9/sbin/geom/class/journal/geom_journal_ufs.c Sat Jan 19 06:17:27 2013 (r245659)
@@ -73,6 +73,6 @@ g_journal_ufs_using_last_sector(const ch
/* 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);
+ fssize = fsbtodb(fs, fs->fs_size);
+ return (psize <= fssize);
}
More information about the svn-src-stable-9
mailing list