No description
Find a file
2025-02-06 20:09:21 +01:00
src added writeback 2025-02-06 20:06:06 +01:00
.gitignore init 2025-02-03 13:36:53 +01:00
Cargo.lock init 2025-02-03 13:36:53 +01:00
Cargo.toml init 2025-02-03 13:36:53 +01:00
README.md readme update 2025-02-06 20:09:21 +01:00

Sync With Progress

Like title says, it just executes sync command and every second displays amount of 'Dirty' and 'Writeback' memory from /proc/meminfo

Why?

Before I unmount and remove an external device, I like to run sync before so that I know it's all nicely written onto the drive.

However, when I'm using slower devices, sync can take a while, and I'd just like to have some more information about the progress.

So I made this.

Todo

  • ETA
  • That's basically it

Limitations

Essentialy it only accounts for amount of dirty memory and memory in the writeback (memory currently being written), it can't account for stuff like hardware still writing to physical medium, etc. For more information about this topic check out what sync does, this is just small wrapper for displaying 2 pieces of information which is usually enough to tell when will sync be done.