Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic: Make sure we're extra paranoid in chattr_full
On btrfs, trying to disable FS_NOCOW_FL on a file that has data already written will fail silently without reporting an error. To catch such cases, let's query the flags again if the IOC_SETFLAGS ioctl() succeeds to make sure the flags we tried to configure we're actually accepted by the kernel.
- Loading branch information