Is it possible for rclone to use the sftp version of "df" when running "rclone mount"? Currently it tries to access the shell version using "df -k", but sftp doesn't support that parameter, and the available space is shown incorrectly. At a quick glance, it looks like the sftp version of "df" could be sufficient enough to provide used and available size.
$ df -k /smallboi/backup/bindi/encrypted/
Filesystem 1K-blocks Used Available Use% Mounted on
smallboi/backup/bindi 14387542016 3227648 14384314368 1% /smallboi/backup/bindi
They do show the same space, that's exactly my point. However when the SSH server is configured to use sftp-internal only, the users are not allowed to execute df -k, and rclone mount shows available space incorrectly (1.0PB free).
But the information is there, just by running "df" (sftp mode) instead of "df -k" (ssh mode) and parsing it.
Edit: I worded it incorrectly, the user is allowed to execute "df", just that sftp-internal version of "df" does not support the parameter "-k", and it exits with an error:
Encrypted drive 'salattu:': Statfs failed: your remote may not support About: failed to run "df -k /smallboi/backup/bindi/encrypted": : Process exited with status 1
However as I said, the information is out there, just by running "df" without the parameter!
Shouldn't this be used instead of just parsing the "df" command? Both the "df" command and StatVFS require implementation of the email@example.com feature, so I think it would make sense to use the library functions instead of a parser.