On Fri, 9 Jun 2017, Al Viro wrote:
On Thu, Jun 08, 2017 at 05:11:39PM -0700, Richard Narron wrote:
Test results don't look pretty on FreeBSD. (I will also test OpenBSD and
NetBSD.)
OK, here's the cumulative diff so far - easy-to-backport parts only; that'll
be split into 6 commits (plus whatever else gets added). It really needs
beating...
On OpenBSD 6.1 (UFS-1) the "df ." test did not look so good before
applying the cumulative diff:
Linux 4.12-rc4:
#mount -t ufs -o rw,ufstype=44bsd /dev/sda19 /diske
#df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda19 16511214 2 15685652 1% /diske
#mkdir a
#rmdir a
#df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda19 16511214 18 15685636 1% /diske
OpenBSD 6.1:
#fsck -f sd0e
** /dev/rsd0e (NO WRITE)
** File system is already clean
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no
SUMMARY INFORMATION BAD
SALVAGE? no
BLK(S) MISSING IN BIT MAPS
SALVAGE? no
1 files, 1 used, 8255598 free (14 frags, 1031948 blocks, 0.0%
fragmentation)
But after applying the accumulative diff patch set it looks great:
Linux 4.12-rc4-viro-1:
#mount -t ufs -o rw,ufstype=44bsd /dev/sda19 /diske
#cd /diske
#df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda19 16511214 2 15685652 1% /diske
#mkdir a
#df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda19 16511214 4 15685650 1% /diske
#rmdir a
#df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda19 16511214 2 15685652 1% /diske
OpenBSD 6.1:
#fsck -f sd0e
** /dev/rsd0e
** File system is already clean
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 8255606 free (14 frags, 1031949 blocks, 0.0%
fragmentation)