yxa2111 / juicefs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from juicedata/juicefs
JuiceFS is a distributed POSIX file system built on top of Redis and S3.
Home Page: https://juicefs.com
License: Apache License 2.0
This project forked from juicedata/juicefs
JuiceFS is a distributed POSIX file system built on top of Redis and S3.
Home Page: https://juicefs.com
License: Apache License 2.0
What would you like to be added:
Why is this needed:
在配置里指定某个特殊目录是否replicate到某个replication。这个元数据存在目录和文件的xattr里。每次配置好之后都要遍历修改下所有这个目录下面的子目录和文件的xattr。create时如果父inode有这个xattr,继承一下。open时也要特殊再加载一下xattr,保存在fd结构里。write/flush/sync的时候往下传(放到context里),一直传到wSlice里。wSlice再将这个文件相关的replicateInfo传给下面的object storage。
感觉这个不一定做,所以先记一下
可能需要每次启动前都check一下。修改时,可以先修改目录下所有子目录和文件的xattr,之后再修改这个目录的xattr,这样可以保证如果这个目录的xattr有改动,这个目录下面所有的entry都已经修改了。check时,只从没有xattr的目录开始向下遍历。可以先集中扫描出一个修改list,再批量修改(todo:提供批量修改xattr的接口)。这样每次启动时最多只需要获取一个目录的xattr即可。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.