btrfs: Add ctime/mtime update for btrfs device add/remove.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 16 Apr 2014 09:02:32 +0000 (17:02 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:33 +0000 (17:20 -0700)
commit5a1972bd9fd4b2fb1bac8b7a0b636d633d8717e3
tree93944f37e34a5669ebcf2e5fab5c05a9ad887c3a
parent61155aa04ebcba6a33f2a281c46f351ca150d816
btrfs: Add ctime/mtime update for btrfs device add/remove.

Btrfs will send uevent to udev inform the device change,
but ctime/mtime for the block device inode is not udpated, which cause
libblkid used by btrfs-progs unable to detect device change and use old
cache, causing 'btrfs dev scan; btrfs dev rmove; btrfs dev scan' give an
error message.

Reported-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Cc: Karel Zak <kzak@redhat.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c