]> 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)
commit2b1fa93fd2254954747d83fce3c1a6d3e6497946
treefd2755cd8faf2309ad28b69807b37b6e5ac0328e
parentadddb371151cc915ec2c2b6fc720604ed2873a87
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