]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Followup to -r344552 in which fsck_ffs checks for a size past the
authormckusick <mckusick@FreeBSD.org>
Sat, 13 Apr 2019 13:31:06 +0000 (13:31 +0000)
committermckusick <mckusick@FreeBSD.org>
Sat, 13 Apr 2019 13:31:06 +0000 (13:31 +0000)
commit82dbc2b6280e5da8da31e12b12d4f365c8a37e6c
treefd6ab01b7a2f0038b226200d9d4901e4b534a09a
parent8cd15a0ead7a4e0a3d37b5a2516b897036314da6
Followup to -r344552 in which fsck_ffs checks for a size past the
last allocated block of the file and if that is found, shortens the
file to reference the last allocated block thus avoiding having it
reference a hole at its end.

This update corrects an error where fsck_ffs miscalculated the last
logical block of the file when the file contained a large hole.

Reported by:  Jamie Landeg-Jones
Tested by:    Peter Holm
MFC after:    2 weeks
Sponsored by: Netflix
sbin/fsck_ffs/fsck.h
sbin/fsck_ffs/inode.c
sbin/fsck_ffs/pass1.c