fatrace
fatrace copied to clipboard
ZFS mounts are not monitored
fatrace
doesn't work on ZFS mounts (except -c
mode) because the mnt_fsname
is not a device.
A few examples of mount
output for ZFS filesystems:
bpool/BOOT/ubuntu_lkdzni on /boot type zfs (rw,nodev,relatime,xattr,posixacl)
rpool/ROOT/ubuntu_lkdzni on / type zfs (rw,relatime,xattr,posixacl)
rpool/USERDATA/root_lkdzni on /root type zfs (rw,relatime,xattr,posixacl)
Having an option to opt-in specified non-device-file-based filesystem types for monitoring would at least make fatrace
usable with ZFS. (Just one possible solution.)
I'd also like support for ZFS even if support is minimal. I currently use a really old version fanotify_watch with a couple lines commented out to monitor ZFS mounts for certain files.
/proc/self/mounts:
...
dozer/scripts /dozer/scripts zfs rw,noatime,xattr,posixacl 0 0
...
As of 2021-12-17: the zfs file system seems to get ignored on line 379 (ctrl+f "only consider").
I added a condition to not ignore ZFS: strcmp(mount->mnt_type, "zfs") != 0
However this leads to an error: fatrace: Received unexpected event info type 52
. I did not go any further in my debugging.