NILFS-CLEAN(8)

✨ NILFS-CLEAN ✨

okay so bestie, welcome to nilfs-clean, section 8 of the System Manager's Manual πŸ’– this is the lil tool that pokes nilfs_cleanerd(8) and tells it what to do about garbage collection. yes she's giving main character energy, no she is not here to be subtle πŸŽ€


🌸 NAME 🌸

nilfs-clean β€” run garbage collector on NILFS file system 🧹✨


πŸ¦‹ SYNOPSIS πŸ¦‹

nilfs-clean [options] [device|node]

πŸ’… DESCRIPTION πŸ’…

so the way that nilfs-clean works is it literally talks to nilfs_cleanerd(8) and controls how garbage collection (GC) runs on your NILFS2 file systems. it's the girl in the group chat who makes the plans happen πŸ’–

you can use it to manually run garbage collection on a file system mounted on device, and the whole point is to free up space. and device? she's flexible bestie β€” it can be a block device or a filesystem node (a file or a directory) that lives on that filesystem 🫢

now, if you pass a GC command using one of the following options β€” that's -c, -s, -r, and -l β€” then the command gets sent over to nilfs_cleanerd(8) and performed there. but if you specify no commands at all? then nilfs-clean just triggers a one-pass cleaning. simple as that, periodt ✨

when device is omitted, nilfs-clean goes and picks an active NILFS2 file system in the system for you. she chooses πŸ”₯

⚠️ okay important: this command is valid only for mounted NILFS2 file systems, and it will fail if the device has no active mounts. no mounts, no service, sorry babe 😭

πŸŽ€ OPTIONS πŸŽ€

  • -b, --break, --stop β€” stop garbage collection. that's it, that's the tweet πŸ’€
  • -c, --reload[=conffile] β€” request a config file reload from the cleaner process. if you hand over an optional configuration file, that file gets read by nilfs_cleanerd(8) and the cleaner configuration gets reset to whatever's in it. if you give no argument, then a configuration file selected by nilfs_cleanerd(8) gets reloaded instead. her choice, not yours πŸ’…
  • -l, --status β€” display cleaner status. we love a status update πŸ‘‘
  • -h, --help β€” display help message and exit. the classic escape hatch πŸƒβ€β™€οΈ
  • -m, --min-reclaimable-blocks=COUNT[%] β€” specify the minimum number of reclaimable blocks a segment needs before it can be cleaned. if the argument is followed by a percent sign, it means the ratio of blocks in a segment. heads up tho: this argument will only have an effect if the use_set_suinfo flag is set in the configuration file. no flag, no vibes ✨
  • -p, --protection-period=interval β€” set the protection period for a cleaner run. interval is an integer value and it specifies the minimum time that deleted or overwritten data will be preserved in the file system. smaller values = more free space made by garbage collection πŸ”₯ optionally, interval can be suffixed with one of these units designators: s, m, h, d, w, M, or Y β€” that's seconds, minutes, hours, days, weeks, months, or years respectively. pick your time era bestie ⏳
  • -q, --quit β€” shut down the cleaner daemon. bye girl πŸ’œ
  • -r, --resume β€” resume garbage collection. welcome back πŸŽ€
  • -s, --suspend β€” suspend garbage collection. but note this: if users manually suspend garbage collection with this option, it will not restart automatically until the user resumes the garbage collection. so like, you did this, you undo it, iykyk πŸ™ˆ
  • -S, --speed=COUNT[/SECONDS] β€” set garbage collection speed for a cleaner run. zoom zoom πŸ¦‹
  • -v, --verbose β€” verbose mode. give me all the lore πŸ“–
  • -V, --version β€” display version and exit. slay ⭐

🌈 AUTHOR 🌈

Ryusuke Konishi <konishi.ryusuke@gmail.com> β€” thank you for your service king πŸ‘‘


πŸ’– AVAILABILITY πŸ’–

nilfs-clean is part of the nilfs-utils package and is available from https://nilfs.sourceforge.io. go get her πŸ›οΈ


🌟 SEE ALSO 🌟

nilfs(8), nilfs_cleanerd(8). read those too bestie, they're the supporting cast 🫢


and that's the whole page!! this was nilfs-utils version 2.3, dated Jan 2026 🌸 mwah, go clean some garbage, you're doing amazing sweetie πŸ’…βœ¨

πŸ“¦ where this page comes from