Skip to contentSkip to conversation

R: Re: Subvolumes and /proc/self/mountinfo

DISCUSSION Goffredo Baroncelli <[email protected]> 1 participant 1 message Jun 20, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

HI all,

Quoted 8 lines

----Messaggio originale----
Da: [email protected]
Data: 20/06/2012 1.49
A: "H. Peter Anvin"<[email protected]>
Cc: "[email protected]"<[email protected]>
Ogg: Re: Subvolumes and /proc/self/mountinfo

Quoted 6 lines
Quoted 2 lines

b. Are there better ways (walking the tree using BTRFS_IOC_TREE_SEARCH?) to accomplish this than using /proc/self/mountinfo?

Not yet, but I'm definitely open to adding them. Lets just hash out what you need and we'll either go through Kay's stuff or add ioctls for you.

Chris, what about adding a /sys/btrfs/<fs-uuid>/<subvol-id> interface ?

For example under

/sys/btrfs/<fs-uuid>

we can list the devices which btrfs uses

under

/sys/btrfs/<fs-uuid>/<subvol-id>

we can show/set the subvolume properties (like RO, compres....)

Quoted 7 lines

-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html