TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Google Cloud Storage FUSE

149 点作者 mvolfik大约 2 年前

15 条评论

ofek大约 2 年前
I do appreciate that Google is now officially supporting gcsfuse because it genuinely is a great project. However, their Kubernetes CSI driver seems to have in large part copied code from the one I and a co-maintainer have been working on for years:<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;GoogleCloudPlatform&#x2F;gcs-fuse-csi-driver">https:&#x2F;&#x2F;github.com&#x2F;GoogleCloudPlatform&#x2F;gcs-fuse-csi-driver</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;ofek&#x2F;csi-gcs">https:&#x2F;&#x2F;github.com&#x2F;ofek&#x2F;csi-gcs</a><p>Here is the initial commit: <a href="https:&#x2F;&#x2F;github.com&#x2F;GoogleCloudPlatform&#x2F;gcs-fuse-csi-driver&#x2F;commit&#x2F;04df4c7f0940a41530e94342e26ac2e65ef8cb77">https:&#x2F;&#x2F;github.com&#x2F;GoogleCloudPlatform&#x2F;gcs-fuse-csi-driver&#x2F;c...</a><p>Notice for example not just the code but also the associated files. In the Dockerfile it blatantly copied the one from my repo, even the dual license I chose because I was very into Rust at the time. Or take a look at the deployment examples which use Kustomize which I like but is very uncommon and most Kubernetes projects provide Helm charts instead.<p>They were most certainly aware of the project because Google reached out to discuss potential collaboration but never responded back: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;KDuf9mj" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;KDuf9mj</a>
评论 #35790325 未加载
评论 #35863944 未加载
评论 #35790332 未加载
评论 #35838441 未加载
评论 #35862926 未加载
评论 #35795575 未加载
MontyCarloHall大约 2 年前
I’ve experimented with using gcsfuse and its AWS equivalent, s3fs-fuse in production. At best, they are suited to niche applications; at worst, they are merely nice toys. The issue is that every file system operation is fundamentally an HTTP request, so the latency is several orders of magnitude higher than the equivalent disk operation.<p>For certain applications that consistently read limited subsets of the filesystem, this can be mitigated somewhat by the disk cache, but for applications that would thrash the cache, cloud buckets are simply not a good storage backend if you desire disk-like access.<p>What I would really like to see is a two-tier cache system: most recently accessed files are cached to RAM, with less recently accessed files spilling over to a disk-backed cache. That would open up a world of additional applications whose useful cache size exceeds practical RAM amounts.
评论 #35787349 未加载
评论 #35787436 未加载
评论 #35786900 未加载
评论 #35787511 未加载
评论 #35787679 未加载
评论 #35787301 未加载
评论 #35786995 未加载
评论 #35789225 未加载
评论 #35788228 未加载
评论 #35786960 未加载
评论 #35787477 未加载
评论 #35786767 未加载
评论 #35787394 未加载
评论 #35788536 未加载
评论 #35786409 未加载
nickcw大约 2 年前
As the author of rclone I thought I&#x27;d have a quick look through the docs to see what this is about.<p>From reading the docs, it looks very similar to `rclone mount` with `--vfs-cache-mode off` (the default). The limitations are almost identical.<p>* Metadata: Cloud Storage FUSE does not transfer object metadata when uploading files to Cloud Storage, with the exception of mtime and symlink targets. This means that you cannot set object metadata when you upload files using Cloud Storage FUSE. If you need to preserve object metadata, consider uploading files using gsutil, the JSON API, or the Google Cloud console.<p>* Concurrency: Cloud Storage FUSE does not provide concurrency control for multiple writes to the same file. When multiple writes try to replace a file, the last write wins and all previous writes are lost. There is no merging, version control, or user notification of the subsequent overwrite.<p>* Linking: Cloud Storage FUSE does not support hard links.<p>* File locking and file patching: Cloud Storage FUSE does not support file locking or file patching. As such, you should not store version control system repositories in Cloud Storage FUSE mount points, as version control systems rely on file locking and patching. Additionally, you should not use Cloud Storage FUSE as a filer replacement.<p>* Semantics: Semantics in Cloud Storage FUSE are different from semantics in a traditional file system. For example, metadata like last access time are not supported, and some metadata operations like directory renaming are not atomic. For a list of differences between Cloud Storage FUSE semantics and traditional file system semantics, see Semantics in the Cloud Storage FUSE GitHub documentation.<p>* Overwriting in the middle of a file: Cloud Storage FUSE does not support overwriting in the middle of a file. Only sequential writes are supported. Access: Authorization for files is governed by Cloud Storage permissions. POSIX-style access control does not work.<p>However rclone has `--vfs-cache-mode writes` which caches file writes to disk first to allow overwriting in the middle of a file and `--vfs-cache-mode full` to cache all objects on a LRU basis. They both make the file system a whole lot more POSIX compatible and most applications will run using `--vfs-cache-mode writes` unlike `--vfs-cache-mode off`.<p>And of course rclone supports s3&#x2F;azureblob&#x2F;b2&#x2F;r2&#x2F;sftp&#x2F;webdav&#x2F;etc&#x2F;etc also...<p>I don&#x27;t think it is possible to adapt something with cloud storage semantics to a file system without caching to disk, unless you are willing to leave behind the 1:1 mapping of files seen in the mount to object in the cloud storage.
milesward大约 2 年前
Please, listen to me: use this only in extremely limited cases where performance, stability, and cost efficiency are not paramount. An object store is not a file system no matter how hard you bludgeon it.
rippercushions大约 2 年前
Is this the same gcsfuse that&#x27;s been around for years, only now with official Google support?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;GoogleCloudPlatform&#x2F;gcsfuse">https:&#x2F;&#x2F;github.com&#x2F;GoogleCloudPlatform&#x2F;gcsfuse</a>
评论 #35790394 未加载
评论 #35794568 未加载
评论 #35786294 未加载
askvictor大约 2 年前
Now for official Google Drive support on Linux...
评论 #35786886 未加载
jijji大约 2 年前
I&#x27;ve been using rclone [0] to do the same under linux for years, how is this different?<p>[0] <a href="https:&#x2F;&#x2F;rclone.org" rel="nofollow">https:&#x2F;&#x2F;rclone.org</a>
评论 #35787788 未加载
ISL大约 2 年前
Can this be used to mount Drive under linux?
评论 #35787015 未加载
评论 #35790114 未加载
评论 #35787522 未加载
retrocryptid大约 2 年前
This has been a thing for a while; I remember using it (or something like it) several years ago. While it&#x27;s great for random files you might want to place in the G-Cloud, what I really wanted was to access my google docs content from the Linux command line. And you <i>can</i> do that, it&#x27;s just that they&#x27;re in non-obvious, non-documented, frequently changing formats that will only ever be usable with Google Docs.<p>But if you&#x27;re using the google cloud like you might use Box.Net or DropBox, it seems fine for light usage.
manigandham大约 2 年前
Object storage is a higher-level abstraction than block-storage. FUSE and similar tech can do the job for basic requirements like read-only access by legacy applications but rarely works well for other scenarios.<p>A more complex layer like <a href="https:&#x2F;&#x2F;objectivefs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;objectivefs.com&#x2F;</a> (based on the S3 API) would be more useful, although I would&#x27;ve expected the cloud providers to scale their own block-store&#x2F;SANs backed with object-stores by now.
remram大约 2 年前
See also: JuiceFS: <a href="https:&#x2F;&#x2F;juicefs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;juicefs.com&#x2F;</a><p>Adds a DBMS or key-value store for metadata, making the filesystem much faster (POSIX, small overwrites don&#x27;t have to replace a full object in the GCS&#x2F;S3 backend).<p>Almost certainly a better solution if you want to turn your object storage into a mountable filesystem, with the (big) caveat that you can&#x27;t access the files directly in the bucket (they are not stored transparently).
评论 #35787714 未加载
jefftk大约 2 年前
<i>Cloud Storage FUSE does not support overwriting in the middle of a file. Only sequential writes are supported.</i><p>This seems like a big limitation?
评论 #35787184 未加载
评论 #35786315 未加载
评论 #35790434 未加载
iamjk大约 2 年前
I mean I get why everyone wants everything to be fuse-compatible but some things just aren&#x27;t meant to be done.
评论 #35788830 未加载
goodpoint大约 2 年前
FUSE is really not suitable for this.
trollied大约 2 年前
Be aware that this is not free:<p>&quot;Cloud Storage FUSE is available free of charge, but the storage, metadata, and network I&#x2F;O it generates to and from Cloud Storage are charged like any other Cloud Storage interface. In other words, all data transfer and operations performed by Cloud Storage FUSE map to Cloud Storage transfers and operations, and are charged accordingly.&quot;
评论 #35786359 未加载