Btrfs: Send: preserve ownership (uid and gid) also for symlinks.
authorAlex Lyakas <alex.btrfs@zadarastorage.com>
Wed, 17 Oct 2012 13:52:47 +0000 (13:52 +0000)
committerChris Mason <chris.mason@fusionio.com>
Thu, 25 Oct 2012 19:47:31 +0000 (15:47 -0400)
commite2d044fe77f8e845333bb1bd29587dc08a4346a0
treef0d30e2900224d39dbe4cceabe116f2d7a8305f4
parent671415b7db49f62896f0b6d50fc4f312a0512983
Btrfs: Send: preserve ownership (uid and gid) also for symlinks.

This patch also requires a change in the user-space part of "receive".
We need to use "lchown" instead of "chown". We will do this in the
following patch.

Signed-off-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
  if (S_ISREG(sctx->cur_inode_mode)) {
fs/btrfs/send.c