Hi, On Sat, 10 Mar 2012 00:15:28 +0800, Kenneth Langga wrote: > What happens when cleanerd is interrupted while it's cleaning by > unmounting the drive, for example, and then mounted again? Does it > resume from the previous block or does it start from the beginning? > Thanks. Cleanerd is safely interruptible either by unmount or a SIGINT signal. If you mount the drive after that, GC restarts from the previous block because the current GC algorithm selects target segments in chronological order. However, it will forget execution states. If you were doing one pass cleaning kicked by nilfs-clean command, and then unmounted and mounted again, GC doesn't resume. If the ratio of free segments is smaller than max_clean_segments but larger than min_clean_segments, it doesn't resume even if it was running previously by watermark control using these threshold values. Cheers, Ryusuke Konishi -- To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html