Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2018 16:08:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 230851] fsck sets last modified file size to zero on crash on UFS filesystem
Message-ID:  <bug-230851-3630-xwQkUIEGKj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230851-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230851-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230851

--- Comment #6 from Kirk McKusick <mckusick@FreeBSD.org> ---
(In reply to Ali Abdallah from comment #5)
You are correct that the installed binaries are not being fsync'ed before t=
he
database is being updated (which being database software DOES properly fsyn=
c).
I have not looked at pkg, but if it directly does the write itself, it shou=
ld
do the fsync before it updates the database. It may be that it is running a
shell script that uses the install(1) utility, then it is install that shou=
ld
be doing the fsync. Obviously, more checking needs to be done.

Thanks for your help in tracking down these issues.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230851-3630-xwQkUIEGKj>