rkctechnocrat / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

Reported disk usage is incorrect #248

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mount a drive with sshfs
2. use df -h to view disk usage information

What is the expected output? What do you see instead?
all ssh drives are reported to be 1000 gigs in size with 0 gigs used.
I expect to see the actual disk usage reported correctly.

What version of the product are you using? On what operating system?
sshfs 0.3.0 on Tiger.

Original issue reported on code.google.com by yww...@gmail.com on 30 Jul 2007 at 9:30

GoogleCodeExporter commented 8 years ago
The 1,000 GB is what sshfs reports. The sshfs implementation doesn't actually 
retrieve this information from 
the remote server. It just uses a hardcoded value of 1,000 GB. That part has 
nothing to do with MacFUSE, 
which will just say what the user-space file system told it.

That said, there is no such thing as an ssh "drive". You don't mount a remote 
*drive*--you mount a remote 
directory. SFTP, and most file systems for that matter, don't have a way to 
tell you how much space is 
available/consumed within a directory. Hence, this may not be what you expect, 
but this is how it works. Your 
expectation to "see the actual disk usage reported correctly" isn't quite right 
either for this reason--why 
would you want to see the *disk* usage? You want to see the usage information 
for that directory, which, I 
grant you, looks like a "disk" in that it's mounted and all. Hope this 
clarifies it.

This has been discussed before here.

Original comment by si...@gmail.com on 30 Jul 2007 at 10:47