On 12/13/2014 09:56 PM, martin f krafft wrote:
Holger had the idea to add to molly-guard a check that would require the sysadmin to manually ack a reboot if fsck would be expected to run. I like it.
me too :D
Instead of parsing df -t output, invoking tune2fs -l and doing a whole bunch of grep magic, I wonder if there's a smarter way to
you can take a look what ubuntu does, on /usr/lib/update-notifier/update-motd-fsck-at-reboot
basically it runs dumpe2fs and parse the max mount count and fsck interval time, it compares it to how many mounts and how long since last fsck
i think is fast, maybe due to the fact they cache the results
find out if fsck would do something if it were to run now. There is fsck -A -t ext2,ext3,ext4,… ... but I could not find out how to ask it the question I want answered, which is: "hey, fsck, if you were to run right now on -All filesystems of -type as listed, would you want to do a routine check?" Do you know? Cheers,
-- 1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333