无法在 goofys-mounted 文件夹中制作 zip 文件
can't make zip file in the goofys-mounted folder
我尝试使用 goofys 在挂载目录中制作一个 zip 文件,但失败并显示以下错误消息:
$ su - foo-user
$ zip hoge.zip hoge
updating: hoge
zip I/O error: Operation not supported
zip error: Input file read failure (was zipping hoge)
有解决这个问题的线索吗?
我试过的
在其他目录中制作一个zip文件并将其复制到挂载点成功。
所以它似乎不像 permission/authorization 问题。
$ zip /tmp/hoge.zip hoge
adding: hoge (stored 0%)
$ ll /tmp/hoge.zip
-rw-rw-r-- 1 foo-user foo-user 163 Apr 4 17:52 hoge.zip
$ cp /tmp/hoge.zip (path of the mount-point)
$ ll
total 5
-rw-r--r-- 1 foo-user foo-user 5 Mar 26 10:56 hoge
-rw-r--r-- 1 foo-user foo-user 163 Apr 4 17:48 hoge.zip
系统配置
- OS:亚马逊Linux (EC2)
- Goofys 版本:0.19.0-使用
挂载点权限:
drwxr-xr-x 2 foo-user foo-user 4096 Apr 4 17:48 s3
输入文件的权限:
-rw-r--r-- 1 foo-user foo-user 5 Mar 26 10:56 hoge
/etc/fstab
的设置:
(path of goofys installed)/goofys#(s3-bucket-name) (path of the mount point) fuse _netdev,allow_other,--file-mode=0644,--uid=502,--gid=502 0 0
Uid/gid 共 foo-user
:
$ id
uid=502(foo-user) gid=502(foo-user) groups=502(foo-user)
S3 不是文件系统。 Goofys 试图(令人钦佩地)弥合文件系统和对象存储之间的差距,但存在无法克服的阻抗不匹配,需要妥协或限制。 Goofys 选择了最佳性能路径:
things that are difficult to support on S3 or would translate into more than one round-trip would either fail (random writes)...
Zip 文件创建使用随机写入。这可以解释为什么使用 -b
选项可以解决问题。通过创建一个临时文件然后复制它,可以避免随机写入存储桶。
S3 的随机写入只能通过显着延迟写入或通过每次随机写入重复覆盖对象来实现,这不会很好地执行并且可能会牺牲可靠性、持久性或一致性。
goofys 由于 sqlbot 建议的随机写入而无法创建 zip 文件。 s3fs 是支持此功能的类似程序。
我尝试使用 goofys 在挂载目录中制作一个 zip 文件,但失败并显示以下错误消息:
$ su - foo-user
$ zip hoge.zip hoge
updating: hoge
zip I/O error: Operation not supported
zip error: Input file read failure (was zipping hoge)
有解决这个问题的线索吗?
我试过的
在其他目录中制作一个zip文件并将其复制到挂载点成功。 所以它似乎不像 permission/authorization 问题。
$ zip /tmp/hoge.zip hoge
adding: hoge (stored 0%)
$ ll /tmp/hoge.zip
-rw-rw-r-- 1 foo-user foo-user 163 Apr 4 17:52 hoge.zip
$ cp /tmp/hoge.zip (path of the mount-point)
$ ll
total 5
-rw-r--r-- 1 foo-user foo-user 5 Mar 26 10:56 hoge
-rw-r--r-- 1 foo-user foo-user 163 Apr 4 17:48 hoge.zip
系统配置
- OS:亚马逊Linux (EC2)
- Goofys 版本:0.19.0-使用
挂载点权限:
drwxr-xr-x 2 foo-user foo-user 4096 Apr 4 17:48 s3
输入文件的权限:
-rw-r--r-- 1 foo-user foo-user 5 Mar 26 10:56 hoge
/etc/fstab
的设置:
(path of goofys installed)/goofys#(s3-bucket-name) (path of the mount point) fuse _netdev,allow_other,--file-mode=0644,--uid=502,--gid=502 0 0
Uid/gid 共 foo-user
:
$ id
uid=502(foo-user) gid=502(foo-user) groups=502(foo-user)
S3 不是文件系统。 Goofys 试图(令人钦佩地)弥合文件系统和对象存储之间的差距,但存在无法克服的阻抗不匹配,需要妥协或限制。 Goofys 选择了最佳性能路径:
things that are difficult to support on S3 or would translate into more than one round-trip would either fail (random writes)...
Zip 文件创建使用随机写入。这可以解释为什么使用 -b
选项可以解决问题。通过创建一个临时文件然后复制它,可以避免随机写入存储桶。
S3 的随机写入只能通过显着延迟写入或通过每次随机写入重复覆盖对象来实现,这不会很好地执行并且可能会牺牲可靠性、持久性或一致性。
goofys 由于 sqlbot 建议的随机写入而无法创建 zip 文件。 s3fs 是支持此功能的类似程序。