When i use SFTP to connect to my NAS and use software like, Expandrive or NetDrive3 to map my shares via SFTP I get wrong values for free and used space. It shows up as 10tb of 10tb remaining, while the shares are 1TB each.
Any idea why file explorer is reading the values incorrectly?
@Moonbow Welcome to the Rockstor community.
Linking to your GitHub issue opened at around the same time:
I have answered you question there originating from Expandrive support. And in short here we simply use openssh-server to do our sftp via it’s internal-sftp subsystem.
Maybe others can report here on their experience with free and used space reporting via their sftp client software. My Nautilus in Fedora 26 seems to get free and used about right but goes a little nuts on the total space occasionally.
Do bear in mind though that btrfs disk space usage is often quite different to file size reporting, especially from older tools. And we currently have quotas incompletely enforced as they are currently still problematic, ie the message on the share details pages with the yellow background:
“Share size enforcement is temporarily disabled due to incomplete support in BTRFS. Until this status changes, the effective size of a Share is equal to the size of the Pool it belongs to.”
My understanding is that this can lead to some space calculation issues.
Hope that helps at least a bit.
I’ll take a look as to what this could be. Thank you so much for the information. And yes it would be handy if others reported their experiences using SFTP.
Take care, Shaun