]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Update existing btrfs_device for renaming device
authorTARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
Tue, 9 Feb 2010 06:36:45 +0000 (06:36 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 15:00:10 +0000 (11:00 -0400)
commit30f2e334f67aea5334d013f5d02f9162f4c03460
tree4038b649e33a7f41fd653a16af5766ca9cc6b7c5
parent1e340514fbaf0a6148bb93a211c34e6345d44c54
btrfs: Update existing btrfs_device for renaming device

When we scan devices in a multi-device filesystem, we memorize the original
name.  If the device gets a new name, later scans don't update the
in-kernel structures related to it, and we're not able to mount the
filesystem.

This patch updates device name during scaning.

Signed-off-by: TARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c