Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

df -PTi used by --debug doesn't work with busybox #234

Open
tlaurion opened this issue Jan 30, 2025 · 2 comments
Open

df -PTi used by --debug doesn't work with busybox #234

tlaurion opened this issue Jan 30, 2025 · 2 comments

Comments

@tlaurion
Copy link
Contributor

tlaurion commented Jan 30, 2025

Cultprit is
-i, --inodes list inode information instead of block usage

Which is not supported.

root@rpi5:~# df -PTi
df: unrecognized option: i
BusyBox v1.37.0 (2025-01-10 13:53:49 UTC) multi-call binary.

Usage: df [-PkmhT] [-t TYPE] [FILESYSTEM]...

Print filesystem usage statistics

	-P	POSIX output format
	-k	1024-byte blocks (default)
	-m	1M-byte blocks
	-h	Human readable (e.g. 1K 243M 2G)
	-T	Print filesystem type
	-t TYPE	Print only mounts of this type

Resulting in

Traceback (most recent call last):
  File "/usr/sbin/wyng", line 5168, in <module>
    aset        = get_configs(options)    ; dest = aset.dest
                  ^^^^^^^^^^^^^^^^^^^^
  File "/usr/sbin/wyng", line 2244, in get_configs
    dest.detect_state(opts.dedup)
  File "/usr/sbin/wyng", line 2556, in detect_state
    raise ValueError("Missing or malformed tmp dir: "+repr(self.dtmp))
ValueError: Missing or malformed tmp dir: None
@tlaurion
Copy link
Contributor Author

Removing "i" worked, but didn't check where df result was used.

Soon enough I will see though, since remote storage is 90% full, can't wait to see autoprune in action.

@tasket
Copy link
Owner

tasket commented Jan 31, 2025

Its only a nice-to-have during debug. I'll remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants