Commit c38b824
btrfs-progs: do not generate checksum nor compress if the inode has NODATACOW or NODATASUM
Currently mkfs.btrfs --rootdir is implying data checksum, but soon we
will support per-inode NODATACOW|NODATASUM flags.
To support per-inode NODATACOW|NODATASUM flags:
- Avoid compression if the inode has either NODATACOW|NODATASUM flag
- Do not generate data checksum if the inode has either
NODATACOW|NODATASUM flag.
Both behaviors are the following the kernel ones.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 8d30e00 commit c38b824
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
725 | 731 | | |
726 | 732 | | |
727 | 733 | | |
| |||
852 | 858 | | |
853 | 859 | | |
854 | 860 | | |
855 | | - | |
856 | | - | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
857 | 864 | | |
858 | 865 | | |
859 | 866 | | |
860 | | - | |
861 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
862 | 870 | | |
863 | 871 | | |
864 | 872 | | |
| |||
0 commit comments