Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca7909e8 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

rbd: print capacity in decimal and features in hex



With exclusive-lock added and more to come, print features into dmesg.
Change capacity to decimal while at it.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Reviewed-by: default avatarMike Christie <mchristi@redhat.com>
parent ed95b21a
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -6006,8 +6006,9 @@ static int rbd_dev_device_setup(struct rbd_device *rbd_dev)
	spin_unlock(&rbd_dev_list_lock);
	spin_unlock(&rbd_dev_list_lock);


	add_disk(rbd_dev->disk);
	add_disk(rbd_dev->disk);
	pr_info("%s: added with size 0x%llx\n", rbd_dev->disk->disk_name,
	pr_info("%s: capacity %llu features 0x%llx\n", rbd_dev->disk->disk_name,
		(unsigned long long) rbd_dev->mapping.size);
		(unsigned long long)get_capacity(rbd_dev->disk) << SECTOR_SHIFT,
		rbd_dev->header.features);


	return ret;
	return ret;