btrfs: send: add OTIME as utimes attribute for proto 2+ by default
authorDavid Sterba <dsterba@suse.com>
Tue, 17 May 2022 14:50:30 +0000 (16:50 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:38 +0000 (17:45 +0200)
commit22a5b2abb7340cb05a34eb47d0271a6714cf5e3f
tree0f28860a1809e12f02fa2d7985000d082c76ddc6
parent8f0ed7d4e7bd87c9207a59d6d887777f632a5ed5
btrfs: send: add OTIME as utimes attribute for proto 2+ by default

When send v1 was introduced the otime (inode creation time) was not
available, however the attribute in btrfs send protocol exists. Though
it would be possible to add it for v1 too as the attribute would be
ignored by v1 receive, let's not change the layout of v1 and only add
that to v2+.  The otime cannot be changed and is only informative.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c