Date: Sat, 19 Jan 2013 06:17:27 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r245659 - stable/9/sbin/geom/class/journal Message-ID: <201301190617.r0J6HRGM012908@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301190617.r0J6HRGM012908>