Re: [PATCH] btrfs-progs: Check if the FSID was seen by comparing full UUID

2016-04-15 Thread David Sterba
On Thu, Apr 14, 2016 at 03:21:11PM -0700, Yauhen Kharuzhy wrote: > is_seen_fsid() uses simple hash to check if FS was seen before at > walking on FS list in 'filesystem show' command: hash key is first byte > of the UUID. This function doesn't check full UUID then, so, if there > are two FS with sa

[PATCH] btrfs-progs: Check if the FSID was seen by comparing full UUID

2016-04-14 Thread Yauhen Kharuzhy
is_seen_fsid() uses simple hash to check if FS was seen before at walking on FS list in 'filesystem show' command: hash key is first byte of the UUID. This function doesn't check full UUID then, so, if there are two FS with same first byte in UUIDs exist, only one will be shown: root@test:~# btrfs