Skip to content

S3fs: ZeroByte size with ls #10

@larsal007

Description

@larsal007

Hi,
First of all, thank you for this nice project. It is very useful.

I use the S3fs plugin to do remote acces with Wasabi cloud storage service. The volume is well mounted in the container and my application writes succesfully on remote bucket. After writing, I need to check the file size, but the file system shows zero byte size and 1 jan 1970 as default date. I have checked with a S3 client, the files metadata are right on the remote S3 storage.

My docker-compose volume declaration is:

volumes:
archive:
driver: mochoa/wasabi.listeners:latest
driver_opts:
s3fsopts: "use_path_request_style,allow_other,uid=1001,gid=1001,url=https://s3.eu-central-.wasabisys.com/,bucket=listeners"
name: "listeners"

The file list command returns:

~ docker exec -ti listener ls -alh /data/archive
total 16K
drwxrwxrwx 1 listeneruser listeneruser 0 Jan 1 1970 .
drwxr-xr-x 4 listeneruser listeneruser 38 Oct 29 16:53 ..
drwxr-x--- 1 listeneruser listeneruser 0 Jan 1 1970 xxx
drwxr-x--- 1 listeneruser listeneruser 0 Jan 1 1970 yyy
drwxr-x--- 1 listeneruser listeneruser 0 Jan 1 1970 zzz
....

The plugin inspection:

~ docker plugin inspect mochoa/wasabi.listeners:latest
...
"Description": "S3FS plugin for Docker v2.0.8",
"DockerVersion": "19.03.15",
"Documentation": "https://github.com/marcelo-ochoa/docker-volume-plugins/",
"Entrypoint": [
"/usr/bin/tini",
"--",
"/s3fs-volume-plugin"
],
...

Could you please tell me how to get/show the right file metadata from the file system.

Thank you in advance for help and assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions