search for: btrfs_ioc_snap_getflag

Displaying 1 result from an estimated 1 matches for "btrfs_ioc_snap_getflag".

2010 Nov 30
1
R: Re: [PATCH 5/5] btrfs: Add ioctl to set snapshot readonly/writable
...So I am suggesting to develop a more general interface for future improvement. These pair of functions (*_set/get) should be use to set the subvolume/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...