]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't rename file into dummy directory
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 24 Sep 2009 13:17:31 +0000 (09:17 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 24 Sep 2009 13:17:31 +0000 (09:17 -0400)
commit7a50284dc8f73c8b42f8ebd0b9e7bc42f4ae0598
tree4dce1760675978fd0b113e04f9608f57161bac85
parentd6c1803a2da884116e8a7364b90f96d6d3c056e4
Btrfs: don't rename file into dummy directory

A recent change enforces only one access point to each subvolume. The first
directory entry (the one added when the subvolume/snapshot was created) is
treated as valid access point, all other subvolume links are linked to dummy
empty directories. The dummy directories are temporary inodes that only in
memory, so we can not rename file into them.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c