matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
250 stars 80 forks source link

Implementation of extended attributes #33

Open adocampo opened 9 years ago

adocampo commented 9 years ago

Hi there!

First, I would like to thank you for this wonderful project. MegaFuse works simply perfect! I have it some accounts set up and loaded on my fstab and I can even stream videos flawlessly! I love it! I was trying to "merge" all my mega accounts space into a single and big one, so I tried first unionfs, and it worked, but only for reading... when I write on the merged filesystem, It only writes on the first megafuse FS... so I though to do it with GlusterFS, using megafuse instances as bricks for the cluster. If it would work, we could have a very large storage pool based on mega. GlusterFS, unlike UnionFS, has a lot of metadata and a structure and it knows where the data can end, so we could write on the glusterfs (based also on fuse), and it will send the data to the right brick. The problem is we cannot assemble a gluster cluster, because it needs extended attributes on the underlying filesystem, and it seems MegaFuse does not have them. I can create a volume, cheating the gluster volume create command, by assembling the gluster with my underlying filesystem, and then, mount upon it the megafuse. But when I try to start the gluster volume, it complains about the extended attributes.

# gluster volume info

Volume Name: mega
Type: Distribute
Volume ID: 7406bda3-91f4-4e45-96af-1c9646db18de
Status: Created
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: malevo:/pool/brick1/data
Brick2: malevo:/pool/brick2/data

# gluster volume start mega
volume start: mega: failed: Failed to get extended attribute trusted.glusterfs.volume-id for brick dir /pool/brick1/data. Reason : Operation not supported.

If I try to get the extended attributes, I get:

getfattr brick1
getfattr: brick1: Operation not supported.

So, is there any chance to implement extended attributes on MegaFuse in order to set up upon it another filesystem?

matteoserva commented 9 years ago

first of all: thanks for using megafuse. The answer is yes, these features are already planned. Right now I'm really busy since my master thesis presentation is due on next week. I'll get back on megafuse developement as soon as possible

adocampo commented 9 years ago

Hey! Great news! Good luck with your thesis! I'll follow the progress of MegaFuse for this feature! :+1:

tYYGH commented 9 years ago

@malevolent: There's mhddfs too. I use it and it's working great.

dfaropennetwork commented 8 years ago

+1 i've the same problem