freebsd-src/sbin/fsdb
Kirk McKusick d51bdf327d Have fsdb(8) only mark a filesystem dirty when it is modified.
Until this update, the fsdb(8) command always marked a filesystem
as needing a full fsck unless it was run with the -n flag which
allowed no changes to be made.

This change tracks modifications to the filesystem. Two types of
changes are tracked. The first type of changes are those that are
not critical to the integrity of the filesystem such as changes to
owner, group, time stamps, access mode, and generation number. The
second type of changes are those that do affect the integrity of
the filesystem including zeroing inodes, changing block pointers,
directory entries, link counts, file lengths, file types, and file
flags.

When quitting having made no changes or only changes to data that
is not critical to filesystem integrity, the clean state of the
filesystem is left unchanged. But if filesystem critical data are
changed then fsdb will set the unclean flag which will require a
full fsck to be run before the filesystem can be mounted.

MFC-after:    1 week
Sponsored-by: The FreeBSD Foundation
2023-07-25 19:29:05 -07:00
..
fsdb.8 fsdb(8): Fix an issue reported by mandoc 2020-10-03 18:44:13 +00:00
fsdb.c Have fsdb(8) only mark a filesystem dirty when it is modified. 2023-07-25 19:29:05 -07:00
fsdb.h Have fsdb(8) only mark a filesystem dirty when it is modified. 2023-07-25 19:29:05 -07:00
fsdbutil.c ufs: Rework shortlink handling to avoid subobject overflows 2022-01-02 20:55:36 +00:00
Makefile pkgbase: Put ufs related tools and lib in their own package 2022-10-26 19:46:34 +02:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00