Re: Issue 73 in s3fs: Not seeing directories / files unless created via s3fs

685 views
Skip to first unread message

s3...@googlecode.com

unread,
Nov 2, 2010, 5:14:55 AM11/2/10
to s3fs-...@googlegroups.com

Comment #8 on issue 73 by jan.grewe: Not seeing directories / files unless
created via s3fs
http://code.google.com/p/s3fs/issues/detail?id=73

Thanks cbears, i've tested your changes and now i can see directories not
created via s3fs, but there are also a lot of errors regarding non-existent
files which s3fs tries to list, but which really don't exist - it somehow
takes fragments of the URL and expects those fragments to be files:

$ ls -l /mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/
ls: cannot access
/mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/mybuck: No
such file or directory
ls: cannot access
/mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/mybu: No such
file or directory
ls: cannot access
/mnt/s3/mybucket_production-s3fs-d705449/mybucket/attachments/cket: No such
file or directory
total 1010
-rw-r--r-- 1 root grewej 599858 2008-09-09 10:37 adress_formular.pdf
drwxr-xr-x 1 root root 0 2010-11-02 10:08 avatar_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 avatar_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 cartoons
drwxr-xr-x 1 root root 0 2010-11-02 10:08 cartoons
-rw-r--r-- 1 root grewej 153564 2009-06-30 12:26 cc_export.html
drwxr-xr-x 1 root root 0 2010-11-02 10:08 character_friends
drwxr-xr-x 1 root root 0 2010-11-02 10:08 character_friends
drwxr-xr-x 1 root grewej 0 2010-05-29 19:08 character_teasers
drwxr-xr-x 1 root grewej 0 2010-05-29 19:08 character_teasers
?????????? ? ? ? ? ? mybu
?????????? ? ? ? ? ? mybuck
drwxr-xr-x 1 root root 0 2010-11-02 10:08 content_elements
drwxr-xr-x 1 root root 0 2010-11-02 10:08 content_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 content_items
drwxr-xr-x 1 root root 0 2010-11-02 10:08 customer_communications
drwxr-xr-x 1 root root 0 2010-11-02 10:08 customer_communications
[...]

There are some "folders" in that bucket created via s3fs, and some via a
different method, so only for some there's the empty file.

s3...@googlecode.com

unread,
Nov 19, 2010, 5:28:54 PM11/19/10
to s3fs-...@googlegroups.com

Comment #9 on issue 73 by cbears: Not seeing directories / files unless
Hi Jan,

Can you send me the XML that Amazon returned for that directory? To do that
you can use the attached file; Execute it as something like:

python http_debugging_proxy.py 8080

Then, in another window (example is bash), set:

export http_proxy=localhost:8080

then mount your s3fs volume. The proxy should have a ton of output.

Either attach the output, or send it to me. The output that matters should
be for that directory, and look something like:


<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult
xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>aspera-bear-test-1</Name><Prefix></Prefix><Marker></Marker><MaxKeys>50</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><Contents><Key>bar</Key><LastModified>2010-11-19T22:26:47.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>d509af108fd3d43c43f7916533b7856cbcbb72313e662d65ba7243bd66fbebbb</ID><DisplayName>awsdev</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>foo</Key><LastModified>2010-11-19T22:26:45.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>d509af108fd3d43c43f7916533b7856cbcbb72313e662d65ba7243bd66fbebbb</ID><DisplayName>awsdev</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>

Thanks,
Charles



Attachments:
http_debugging_proxy.py 4.2 KB

s3...@googlecode.com

unread,
Apr 7, 2011, 10:38:33 AM4/7/11
to s3fs-...@googlegroups.com
Updates:
Labels: -Type-Defect Type-Enhancement

Comment #10 on issue 73 by moore...@suncup.net: Not seeing directories /

(No comment was entered for this change.)

s3...@googlecode.com

unread,
Dec 9, 2011, 12:17:31 PM12/9/11
to s3fs-...@googlegroups.com

Comment #11 on issue 73 by JIm.R...@gmail.com: Not seeing directories /

this sounds as if its the same problem as I'm having.. I uploaded a suite
of files to S3 using s3cmd, but when I mount the bucket to my ec2 instance
under s3fs There are only the files in the top (bucket) directory, no
subfolders - although these are visible in the S3 management console and
from every other place I look, e.g. cyberduck.
Would be jolly nice if this worked!

s3...@googlecode.com

unread,
Dec 15, 2011, 9:31:27 AM12/15/11
to s3fs-...@googlegroups.com

Comment #12 on issue 73 by ITparan...@gmail.com: Not seeing directories /

I have this problem too with s3fs-1.61

s3...@googlecode.com

unread,
Dec 15, 2011, 9:40:30 AM12/15/11
to s3fs-...@googlegroups.com

Comment #13 on issue 73 by ITparan...@gmail.com: Not seeing directories /
output through proxy:

<ListBucketResult
xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>wbnr</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><Delimiter>/</Delimiter><IsTruncated>false</IsTruncated><Contents><Key>1</Key><LastModified>2011-12-15T13:59:28.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>250d4afb77615772b6ba5b9406188a3932374e37e52a9d540fce5342c3e99a44</ID><DisplayName>omzfgz</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-16-17-19609BC05B44AB82</Key><LastModified>2011-12-15T14:16:18.000Z</LastModified><ETag>&quot;0961d1784d4f679a0f6824e775523b9c&quot;</ETag><Size>7710</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-16-24-8226A2845EAD7411</Key><LastModified>2011-12-15T14:16:25.000Z</LastModified><ETag>&quot;0fea9c812822d93411c86624ba4cb3a8&quot;</ETag><Size>992</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-16-36-AF8BA709B14449E8</Key><LastModified>2011-12-15T14:16:37.000Z</LastModified><ETag>&quot;0b1ae94233cb15a4034b7afbd51ec61f&quot;</ETag><Size>18675</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-17-25-3B5FBEA6420A0C27</Key><LastModified>2011-12-15T14:17:26.000Z</LastModified><ETag>&quot;c6961ab7352cb52c6f9d4c017f45468f&quot;</ETag><Size>2950</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-17-49-28CE047A9F5292B9</Key><LastModified>2011-12-15T14:17:50.000Z</LastModified><ETag>&quot;41109ddd768a951a26ce8d2f47cb75e8&quot;</ETag><Size>6404</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-23-37-A56DFEFE7969BA76</Key><LastModified>2011-12-15T14:23:39.000Z</LastModified><ETag>&quot;53d74d7efc9658902007273b990d7c29&quot;</ETag><Size>283</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>lg2011-12-15-14-30-37-7CB2E09A9297AED7</Key><LastModified>2011-12-15T14:30:38.000Z</LastModified><ETag>&quot;a65d91855a21bf887095e2a4f9128f99&quot;</ETag><Size>283</Size><Owner><ID>3272ee65a908a7677109fedda345db8d9554ba26398b2ca10581de88777e2b61</ID><DisplayName>s3-log-service</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><CommonPrefixes><Prefix>0/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>1/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>2/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>3/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>4/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>5/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>6/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>7/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>9/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>b/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>c/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>d/</Prefix></CommonPrefixes><CommonPrefixes><Prefix>e/</Prefix></CommonPrefixes></ListBucketResult>

but ls show only
#ls /s3
1
lg2011-12-15-14-16-36-AF8BA709B14449E8
lg2011-12-15-14-23-37-A56DFEFE7969BA76
lg2011-12-15-14-16-17-19609BC05B44AB82
lg2011-12-15-14-17-25-3B5FBEA6420A0C27
lg2011-12-15-14-30-37-7CB2E09A9297AED7
lg2011-12-15-14-16-24-8226A2845EAD7411
lg2011-12-15-14-17-49-28CE047A9F5292B9

s3...@googlecode.com

unread,
Dec 15, 2011, 9:46:34 AM12/15/11
to s3fs-...@googlegroups.com

Comment #14 on issue 73 by ITparan...@gmail.com: Not seeing directories /

hm, looks like amazon don't list other folders in response.
there are more directories in web listing

s3...@googlecode.com

unread,
Dec 30, 2011, 10:44:27 PM12/30/11
to s3fs-...@googlegroups.com

Comment #15 on issue 73 by waet...@gmail.com: Not seeing directories /

Same here... I cannot see subfolders through s3fs that are visible within
the AWS Management Consle and though an S3 Compatible client such as
CrossFTP Pro.

s3...@googlecode.com

unread,
Jan 9, 2012, 11:42:52 AM1/9/12
to s3fs-...@googlegroups.com

Comment #16 on issue 73 by lorena.p...@gmail.com: Not seeing directories /

s3...@googlecode.com

unread,
Jan 19, 2012, 4:07:37 PM1/19/12
to s3fs-...@googlegroups.com

Comment #17 on issue 73 by da...@walend.net: Not seeing directories / files

Same problem here.

It sounds like there are two approaches for a fix. cbears attempted to get
s3fs to see into existing directories (which would be ideal). A less-good
option would be for s3fs to publish a spec for how you define files so that
others could pile on and build the right tools.

Does some kind of upload tool already exist? (Mounting a file system for a
simple upload is pretty heavy, and requires root.)

s3...@googlecode.com

unread,
Jan 24, 2012, 6:05:30 AM1/24/12
to s3fs-...@googlegroups.com

Comment #18 on issue 73 by seth.plo...@affectiva.com: Not seeing
directories / files unless created via s3fs
http://code.google.com/p/s3fs/issues/detail?id=73

This is no longer simply a problem of s3fs not being able to read
directories created by third party clients. It can't read directories
created with the 'create folder' button in the AWS console, either. This
native S3 directory structure is the standard, right?


s3...@googlecode.com

unread,
Jan 25, 2012, 10:49:56 PM1/25/12
to s3fs-...@googlegroups.com

Comment #19 on issue 73 by da...@walend.net: Not seeing directories / files

Seth, AWS console is at least a defacto standard, and will be the eventual
winner. If s3fs is to support anything beyond what it does now, AWS console
behavior should be top priority. (I didn't find anything describing what
AWS console was doing, but I didn't look too deeply.)

s3...@googlecode.com

unread,
Jan 26, 2012, 2:37:03 AM1/26/12
to s3fs-...@googlegroups.com

Comment #20 on issue 73 by bi...@mypatientcredit.com: Not seeing
directories / files unless created via s3fs
http://code.google.com/p/s3fs/issues/detail?id=73

This would be an excellent enhancement if S3 looked at folders the same way
that the S3 console creates them.

s3...@googlecode.com

unread,
Mar 11, 2012, 7:05:25 PM3/11/12
to s3fs-...@googlegroups.com

Comment #21 on issue 73 by ixo...@gmail.com: Not seeing directories / files

I am dumbfounded as to why folder contents do not mirror what is created
via the S3 interface on Amazon. Why would anyone use this if you can't use
the existing tools to work with the data?

s3...@googlecode.com

unread,
Apr 19, 2012, 10:39:25 PM4/19/12
to s3fs-...@googlegroups.com

Comment #22 on issue 73 by slatt...@gmail.com: Not seeing directories /

would have been nice to find this before i went to the trouble of compiling
fuse so i could compile this and abandon the package management standards.
sigh, either way, thx to the devs, perhaps ill give s3backer a whirl.

s3...@googlecode.com

unread,
Apr 30, 2012, 5:47:40 AM4/30/12
to s3fs-...@googlegroups.com

Comment #23 on issue 73 by sksa...@gmail.com: Not seeing directories /
I am also facing the same issue. Its strange as s3fs is of very little use
then if one cant access subdirectories/files created by S3 Console or S3cmd

s3...@googlecode.com

unread,
Apr 30, 2012, 5:46:57 PM4/30/12
to s3fs-...@googlegroups.com

Comment #24 on issue 73 by jazriel...@jewelry.com: Not seeing directories /
Does anyone know of a scriptable set of actions I can perform on a bucket
to make the content s3fs readable? Unlike others on this thread I don't
need the ability to work back and forth, I just need the ability to migrate
existing buckets to being accessible via s3fs in my EC2 instance.
Appreciate any help anyone can offer with this.

s3...@googlecode.com

unread,
Apr 30, 2012, 6:38:15 PM4/30/12
to s3fs-...@googlegroups.com

Comment #25 on issue 73 by seth.plo...@gmail.com: Not seeing directories /
jazriel, you can use s3fs to create the directory (mkdir
/your/missing/dir), and then the contents will be viewable. So you could
use another tool (python's boto, java's jets3t) to recursively find the
directory names and create the directories via the filesystem.

s3...@googlecode.com

unread,
Apr 30, 2012, 7:11:47 PM4/30/12
to s3fs-...@googlegroups.com

Comment #26 on issue 73 by jazriel...@jewelry.com: Not seeing directories /
Thanks so much, Seth! Worked like a charm :-)

s3...@googlecode.com

unread,
Apr 30, 2012, 7:21:41 PM4/30/12
to s3fs-...@googlegroups.com

Comment #27 on issue 73 by jazriel...@jewelry.com: Not seeing directories /
One strange issue when doing this: ls -al lists the directory name as a
file contained in the directory. For example, inside the path ......./xsd I
see:

---------- 1 root root 3596 Jan 24 02:14
jcomfeedschema.1.1.xsd
---------- 1 root root 3655 Mar 19 16:02
jcomfeedschema.1.2.xsd
---------- 1 root root 18446744073709551615 Dec 31 1969 xsd

What is that and how do I correct?

s3...@googlecode.com

unread,
May 15, 2012, 3:52:58 PM5/15/12
to s3fs-...@googlegroups.com

Comment #28 on issue 73 by tehfl...@gmail.com: Not seeing directories /
is there any chance of merging with s3fs-c so i can have permissions set
and access files created outside s3fs?

s3...@googlecode.com

unread,
Jul 25, 2012, 12:25:10 PM7/25/12
to s3fs-...@googlegroups.com

Comment #29 on issue 73 by dannyala...@gmail.com: Not seeing directories /
is there any chance this can be fixed in the near future?

s3...@googlecode.com

unread,
Jul 25, 2012, 12:35:44 PM7/25/12
to s3fs-...@googlegroups.com

Comment #30 on issue 73 by jazriel...@jewelry.com: Not seeing directories /
Building on Xiangbin's question, I see there hasn't been a commit or
comment from the developers in almost a year... Dan Moore & Randy Rizun- We
*LOVE* s3fs (I sure do). Are you still working on this project? The world
needs you, guys :-)

s3...@googlecode.com

unread,
Aug 19, 2012, 1:05:59 AM8/19/12
to s3fs-...@googlegroups.com

Comment #31 on issue 73 by jefferso...@universidadedoingles.com.br: Not
seeing directories / files unless created via s3fs
http://code.google.com/p/s3fs/issues/detail?id=73

I am having the same problem, create a folder on AWS console and not able
to see it usign S3FS.

Does anybody got any word from the devs?

s3...@googlecode.com

unread,
Aug 19, 2012, 4:19:06 PM8/19/12
to s3fs-...@googlegroups.com

Comment #32 on issue 73 by jazriel...@jewelry.com: Not seeing directories /
@jefferson- With s3fs, the workaround is that you need to recreate the
directories using s3fs. It's not so much a bug as an inherent limitation in
the way s3fs "fakes" having a directory structure in s3. If you mount your
bucket in s3fs then mkdir the directory you don't see you'll notice it
contains all the files it's supposed to. Hope that helps.

s3...@googlecode.com

unread,
Sep 19, 2012, 3:43:46 PM9/19/12
to s3fs-...@googlegroups.com

Comment #33 on issue 73 by dick.je...@gmail.com: Not seeing directories /
The big trouble I've read between the lines, is people not being able to
read the contents of folders they import through the S3 console. I've been
using an easy workaround for that problem that saves me a whole lot of time
to create hundreds of directories through s3fs:
1. create a folder in AWS console
2. use the console to access that folder and upload your folders through
the console
3. through s3fs, mkdir the just created folder, and voila:
4. you are now looking at your complete created structure.
5. (optional): move all folders up if need be

Hope that helps a fair bit for you guys.

s3...@googlecode.com

unread,
Sep 19, 2012, 3:47:14 PM9/19/12
to s3fs-...@googlegroups.com

Comment #34 on issue 73 by dick.je...@gmail.com: Not seeing directories /
As in: "mv mnt/bucket/subfolder/* .* /mnt/bucket"

s3...@googlecode.com

unread,
Sep 19, 2012, 11:10:08 PM9/19/12
to s3fs-...@googlegroups.com

Comment #35 on issue 73 by g.duerrm...@gmail.com: Not seeing directories /
In our case we mailed a hard drive to Amazon for the AWS Import service as
there was too much data to feasibly upload. Amazon's import method,
whichever they use, yielded data not visible to s3fs. Our plan was to prime
the storage with the hard drive and then later rsync the incremental
updates to keep it up to date from then on out.
We actually ran into several problems, I will outline them and their
solutions below:
1) No visible directories with s3fs
a. Use s3fs-c (https://github.com/tongwang/s3fs-c) it can see
directories created by Amazon
b. If you must use s3fs, then a possibly better directory creation
method is to use rsync to replicate the directory structure like this:
rsync -rv --size-only -f"+ */" -f"- *" /source/structure/
/s3fs/mounted/structure
We couldn't use mv because of the enormous amount of data which would
have been required to transfer. Rsync is the gentlest folder creation
method I could think of.
Notes:
- We opted for (a) for the time being. Keeping native with Amazon's
method seemed like the best solution.
- You should test this with dummy data and a dummy bucket to make sure
it does what you want it to. Also it may create duplicate 0 byte files as
folders because of how s3fs handles things. Again try it and see.

2) Amazon's import did not preserve timestamps
This was rather frustrating as whatever copy method they used reset all
timestamps to the date/time they were copied, thus negating one of rsync's
sync options.
a. The solution was to use --size-only on the rsync

3) s3fs was not allowing rsync to set mtime's on files/folders for us
Despite commit messages indicating that this has been implemented, it
was generating errors on our end
a. The solution was to use --size-only on the rsync
Notes:
- This ended up being a bit moot anyhow as Amazon reset all timestamps
on import. It would have taken several million operations to reset all of
the timestamps correctly via rsync anyway.

In summary until s3fs implements Amazon's folder method, the best solution
for us was to use s3fs-c and --size-only on the rsyncs.

Good luck!

s3...@googlecode.com

unread,
Sep 24, 2012, 2:38:38 PM9/24/12
to s3fs-...@googlegroups.com

Comment #36 on issue 73 by franc...@gmail.com: Not seeing directories /
This appears to render folders created using s3fs not readable with
tntdrive, so it's not possible to properly share files on s3 between
windows and Linux.

This thread (note the comment by Ivan) has the details.

https://forums.aws.amazon.com/thread.jspa?threadID=58468

Having the ability to create folders in the same as as tntdrive/AWS Console
is really important. Even an option to do this would be great.

s3...@googlecode.com

unread,
Jan 24, 2013, 6:18:06 PM1/24/13
to s3fs-...@googlegroups.com

Comment #37 on issue 73 by anac...@gmail.com: Not seeing directories /
I'm getting this with 1.62. Not cool.

s3...@googlecode.com

unread,
Feb 24, 2013, 6:35:33 PM2/24/13
to s3fs-...@googlegroups.com

Comment #38 on issue 73 by iusgent...@gmail.com: Not seeing directories /
I create the folders implicitly with cp - same problem here: invisible due
to empty file which is not cleaned up. Using the latest version 1.62. Very
not cool!

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

s3...@googlecode.com

unread,
Feb 25, 2013, 12:57:11 PM2/25/13
to s3fs-...@googlegroups.com

Comment #39 on issue 73 by jukow...@gmail.com: Not seeing directories /
Ditto using 1.63. Am opening a new ticket.

s3...@googlecode.com

unread,
Feb 27, 2013, 10:24:48 AM2/27/13
to s3fs-...@googlegroups.com
Updates:
Status: Started
Owner: ggta...@gmail.com

Comment #40 on issue 73 by ggta...@gmail.com: Not seeing directories /
Hi, all

I try to fix this issue. Please wait for next newer code.
This problem is that s3fs doesn't use CommonPrefixes and s3fs makes
directory object name.
Other S3 clients uses CommonPrefixes and makes dir object as "dir/".(s3fs
makes "dir")

regards,

s3...@googlecode.com

unread,
Feb 27, 2013, 5:04:50 PM2/27/13
to s3fs-...@googlegroups.com

Comment #41 on issue 73 by m...@evancarroll.com: Not seeing directories /
This is a dupe of #27

http://code.google.com/p/s3fs/issues/detail?id=27

s3...@googlecode.com

unread,
Mar 23, 2013, 10:43:38 AM3/23/13
to s3fs-...@googlegroups.com
Updates:
Status: Fixed

Comment #42 on issue 73 by ggta...@gmail.com: Not seeing directories /
I uploaded new version v1.64 for this issue.
This new version have a compatibility with other S3 clients.
Please review it.

regards,

s3...@googlecode.com

unread,
Mar 26, 2013, 10:46:45 AM3/26/13
to s3fs-...@googlegroups.com

Comment #43 on issue 73 by j...@ere.net: Not seeing directories / files
This fix looks good, however I'm seeing an issue with permissions for files
and directories that were created via alternate clients (e.g. the AWS S3
console).

Basically, any folder *or* file created/uploaded via the S3 console has no
read/write/execute permissions in the mounted file system. If you chmod the
permissions of the file/folder within the mounted folder then it works fine
thereafter.

Maybe this should be opened as a new issue?

s3...@googlecode.com

unread,
Mar 26, 2013, 10:08:54 PM3/26/13
to s3fs-...@googlegroups.com

Comment #44 on issue 73 by ggta...@gmail.com: Not seeing directories /
Hello,

This problem(issue) that the object does not have any
permission(read/write/execute) is known.
(I want this issue is not new issue.)

The reason is that the folder/file which is made by other S3 clients does
not have any "x-amz-meta-***"(mtime/mode/uid/gid) headers.
If the object does not have "x-amz-meta-uid(gid)" header, the s3fs decides
0(zero) as its value.
This value means owner=root(0) and group=root(0), then the object's
owner/group is root/root.
If the object does not have "x-amz-meta-mtime" header, the s3fs
uses "Last-Modified" header instead of it.
Then these three header is no problem, if they are not specified.

But the object without "x-amz-meta-mode" header is problem, because this
header is needed to decide file/folder permission mode.
The mode 0(0000) is no read/write/execute permission, so you can
see "----------" as "ls" command result.
When user is root(or has root authority), on most unix OS you can do any
commands(ex. rm/cat/etc) to a object without this header(mode=0000).
As an exception, the folder(directory) object without this header is
displayed as "d---------", because the s3fs can decide the directory.

I think about this issue, as one of solution the s3fs forces
deciding "dr-x------"/"-r--------" mode for these folder/file object.
But I think we do not need to do it.
Do you think about this idea for no mode header?

Regards

s3...@googlecode.com

unread,
Jun 9, 2015, 7:30:28 AM6/9/15
to s3fs-...@googlegroups.com

Comment #45 on issue 73 by goo...@webcompanysas.com: Not seeing directories
/ files unless created via s3fs
https://code.google.com/p/s3fs/issues/detail?id=73

I'm using the Amazon auto deletion of objects. When I did it, my folders
created more than 30 days ago, lost their Linux owner and groups, and their
read/write/execute permissions (was both resetted to root, UID=0).

Maybe because Amazon deleted the file s3fs use to store these info?

I think can bypass the problem specifying deletion rules in a more precise
way, specifying what files shouldn't be deleted. But I need to know where
s3fs stores these special "files" and their names.

Anyone may tell me that info?
Reply all
Reply to author
Forward
0 new messages