Re: [PATCH] vfs: freeze filesystems just prior to reboot
From: Darrick J. Wong <hidden>
Date: 2017-08-05 15:46:13
Also in:
linux-fsdevel, linux-xfs
From: Darrick J. Wong <hidden>
Date: 2017-08-05 15:46:13
Also in:
linux-fsdevel, linux-xfs
On Sat, Aug 05, 2017 at 07:16:21AM -0700, Christoph Hellwig wrote:
quoted
Any objections to something like an ioctl (fd, FIFREEZETHAW, 0) ?It's going to be completely trivial, which argues for it. The only points left woul be bikeshedding over the name, and how to describe its semantics.
FSCHECKPOINT? Since that's your requirement anyway... "Ensures that all filesystem metadata (which may be in a journal somewhere) has been checkpointed back to disk." ? --D
quoted
in the end probably the real fix is probably something like storing multiple copies of the bootloader config with checksums that grub can verify. Basically teach grub to try really hard to extract known-good data from the FS. For file-level consistency that'd be pretty easy, we could have e.g.The real answer is to have a filesystem that does the above for you for the boot partition, e.g. one where the kernel and grub have a common consistency protocol for. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html