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

Goffredo Baroncelli
Wed, 20 Jun 2012 11:51:11 -0000

HI all,

>----Messaggio originale----
>Da: chris.mason@fusionio.com
>Data: 20/06/2012 1.49
>A: "H. Peter Anvin"<hpa@zytor.com>
>Cc:
"linux-btrfs@vger.kernel.org"<linux-btrfs@vger.kernel.org>
>Ogg: Re: Subvolumes and /proc/self/mountinfo
>

>> 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....)

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


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