diff options
author | Anand Jain <anand.jain@oracle.com> | 2014-07-03 18:22:06 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-08-19 08:36:30 -0700 |
commit | 77bdae4d136e167bab028cbec58b988f91cf73c0 (patch) | |
tree | 3c2477baa2f64cc00db475efc2f52d399f1a4beb /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | b96de000bc8bc9688b3a2abea4332bd57648a49f (diff) |
btrfs: check generation as replace duplicates devid+uuid
When FS in unmounted we need to check generation number as well
since devid+uuid combination could match with the missing replaced
disk when it reappears, and without this patch it might pair with
the replaced disk again.
device_list_add() function is called in the following threads,
mount device option
mount argument
ioctl BTRFS_IOC_SCAN_DEV (btrfs dev scan)
ioctl BTRFS_IOC_DEVICES_READY (btrfs dev ready <dev>)
they have been unit tested to work fine with this patch.
If the user knows what he is doing and really want to pair with
replaced disk (which is not a standard operation), then he should
first clear the kernel btrfs device list in the memory by doing
the module unload/load and followed with the mount -o device option.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions