mountpoint-s3 icon indicating copy to clipboard operation
mountpoint-s3 copied to clipboard

Implement statfs operation to report basic stats

Open lzw06061139 opened this issue 1 year ago • 3 comments

Mountpoint for Amazon S3 version

mount-s3 1.3.2(build from main branch)

AWS Region

No response

Describe the running environment

Running in a ubuntu server(Release:16.04, kernel:4.15.0-142-generic)

Mountpoint options

mount-s3  --region us-east-1 --endpoint-url {my-endpoint} --debug --debug-crt -l ~/ {my-bucket} {my-mountpoint}

What happened?

Successfully mounted {my-bucket} on {my-mountpoint},I can see the mounted filesystem by running commnd: cat /proc/mounts ,but running df -h can't report the mounted filesystem(others can be reported)

Relevant log output

No response

lzw06061139 avatar Jan 23 '24 08:01 lzw06061139

Hi @lzw06061139, thanks for reporting the issue. This is expected behavior because Mountpoint does not report file system stats to the kernel, so df -h would filter it out. However, you should still be able to see the mount by running df -a command.

I willl change this to feature request to implement statfs operation to report basic stats (https://docs.rs/fuser/latest/fuser/trait.Filesystem.html#method.statfs) so df -h would include Mountpoint in its output by default.

monthonk avatar Jan 24 '24 17:01 monthonk

Hi @lzw06061139, thanks for reporting the issue. This is expected behavior because Mountpoint does not report file system stats to the kernel, so df -h would filter it out. However, you should still be able to see the mount by running df -a command.

I willl change this to feature request to implement statfs operation to report basic stats (https://docs.rs/fuser/latest/fuser/trait.Filesystem.html#method.statfs) so df -h would include Mountpoint in its output by default.

Thank you for your reply @monthonk . df -a can see the mount with zero disk space usage. By the way,when do you expect the new feature statfs will be implemented?

lzw06061139 avatar Jan 25 '24 02:01 lzw06061139

Sorry, we don't have any target date yet. But we will let you know in this thread once we have something to share.

monthonk avatar Jan 25 '24 17:01 monthonk