Displaying 1 result from an estimated 1 matches for "btrfs_ioc_snap_sgetflags".
Did you mean:
btrfs_ioc_snap_getflags
2010 Nov 30
1
R: Re: [PATCH 5/5] btrfs: Add ioctl to set snapshot readonly/writable
...snapshot properties. And the RDONLY is one of them.
In the detail to set an attributue an user should be:
- get the subvolume flags (ioctl(fd, BTRFS_IOC_SNAP_GETFLAGS....) )
- compute the new flags ( flags |= BTRFS_FLAGS_XXXX or flags &=
~BTRFS_FLAG_XXXX)
- set the subvolume flags (ioctl(fd, BTRFS_IOC_SNAP_SGETFLAGS....) )
>
>- It seems to me there''s no user requirement for getflags ioctl to
>return _RDONLY/_WRITABLE flags of a tree root?
And how an user/admin can understand that a snapshot/subvolume is readonly ?
How
>
>- By suggesting BTRFS_SUBVOL_RDONLY, does it impliy not only...