]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: improve device scanning messages
authorAnand Jain <anand.jain@oracle.com>
Thu, 3 Sep 2020 13:30:12 +0000 (21:30 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:20 +0000 (12:12 +0200)
commitf2ab22bb0c6bcc6f756b19828411eb3de016d91f
treefd2755cd8faf2309ad28b69807b37b6e5ac0328e
parent53745cb3ace98933eeefcec743175090454e074d
btrfs: improve device scanning messages

Systems booting without the initramfs seems to scan an unusual kind
of device path (/dev/root). And at a later time, the device is updated
to the correct path. We generally print the process name and PID of the
process scanning the device but we don't capture the same information if
the device path is rescanned with a different pathname.

The current message is too long, so drop the unnecessary UUID and add
process name and PID.

While at this also update the duplicate device warning to include the
process name and PID so the messages are consistent

CC: stable@vger.kernel.org # 4.19+
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=89721
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c