Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-06-03 Thread Qu Wenruo
Original Message Subject: Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove. From: David Sterba To: Qu Wenruo Date: 2014年05月29日 20:43 On Wed, Apr 16, 2014 at 05:02:32PM +0800, Qu Wenruo wrote: @@ -1704,10 +1720,14 @@ int btrfs_rm_device(struct

Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-05-30 Thread Qu Wenruo
Original Message Subject: Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove. From: Anand Jain To: Qu Wenruo , linux-btrfs@vger.kernel.org Date: 2014年05月30日 15:51 Hi Qu, In line below... On 16/04/14 17:02, Qu Wenruo wrote: Btrfs will send

Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-05-30 Thread Anand Jain
I have sent this [PATCH] btrfs: kobject_uevent should use bd_part instead of bd_disk which should fix. Could you try and update. Thanks, Anand On 30/05/14 15:51, Anand Jain wrote: Hi Qu, In line below... On 16/04/14 17:02, Qu Wenruo wrote: Btrfs will send uevent to udev inform the d

Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-05-30 Thread Anand Jain
Hi Qu, In line below... On 16/04/14 17:02, Qu Wenruo wrote: 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

Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-05-29 Thread Qu Wenruo
Original Message Subject: Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove. From: David Sterba To: Qu Wenruo Date: 2014年05月29日 20:43 On Wed, Apr 16, 2014 at 05:02:32PM +0800, Qu Wenruo wrote: @@ -1704,10 +1720,14 @@ int btrfs_rm_device(struct

Re: [PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-05-29 Thread David Sterba
On Wed, Apr 16, 2014 at 05:02:32PM +0800, Qu Wenruo wrote: > @@ -1704,10 +1720,14 @@ int btrfs_rm_device(struct btrfs_root *root, char > *device_path) > > ret = 0; > > - /* Notify udev that device has changed */ > - if (bdev) > + if (bdev) { > + /* Notify udev tha

[PATCH RFC] btrfs: Add ctime/mtime update for btrfs device add/remove.

2014-04-16 Thread Qu Wenruo
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-b