nilfs-dev / nilfs-utils

NILFS utilities
https://nilfs.sourceforge.io/
Other
46 stars 6 forks source link

nilfs-clean will not run if time() is < 0 #1

Closed ewheelerinc closed 6 years ago

ewheelerinc commented 11 years ago

For systems without realtime clocks, it is possible to boot a system which starts at EPOCH=0 of Jan 1, 1970. If the time zone shifts your time negative, time() can return a negative value and report December of 1969.

When nilfs-clean is run under these date constraints it fails to run the cleaning job and the disk fills up. The cleaner daemon does start, however.

For now my hack is to force a more modern date at boot time, however, it would be nice to see the cleaner daemon function even when the date is severely incorrect.

konis commented 8 years ago

I couldn't reproduce this issue on a test system with a negative time (December of 1969). Did you remove files from the filesystem before running nilfs-clean to make them reclaimable ?

konis commented 6 years ago

v2.2.5 release includes improvements to make cleanerd/utils robust against system time changes.

Thanks