Bug 189671
Summary: | btrfs send/receive does not retain file attributes | ||
---|---|---|---|
Product: | File System | Reporter: | ataraxia937 |
Component: | btrfs | Assignee: | Josef Bacik (josef) |
Status: | RESOLVED CODE_FIX | ||
Severity: | enhancement | CC: | ataraxia937, dsterba, gotar |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.8.10-300.fc25.x86_64 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
ataraxia937
2016-12-04 17:02:50 UTC
This is a known problem and will be addressed in v2 of the send/receive protocol update. https://btrfs.wiki.kernel.org/index.php/Design_notes_on_Send/Receive#Send_stream_v2_draft Partially implemented in send v2. Could you please elaborate the "partially" part a bit? So that we could know what to expect (to be still missing). The protocol v2 now has a command to send the inode attributes/flags (compound name for the chattr/lsattr bits and also for the newish XFLAGS) and the command is also generated when v2 is used. The receiving side does not apply the flags yet - that's the missing part. In some cases it's not yet possible (lack of interface, like turning on/off the NODATASUM bit), not directly applicable (setting NOCOW on a nonzero file) or tricky (with IMMUTABLE and APPEND bits no changes can be done to the file so they'd have to be unset temporarily). Now tracked in https://github.com/kdave/btrfs-progs/issues/526. Thank you! |