]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix visibility of "uuid" ns attribute
authorMartin Wilck <mwilck@suse.com>
Thu, 28 Sep 2017 19:33:23 +0000 (21:33 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 22:38:21 +0000 (15:38 -0700)
commitb938249d7da878b094e3d67b4a741d6a25d7a11a
treebf9286d61f76f48f9faf05aa4e5f4fbc4388b9d6
parent10f30e2c8a75ad96f249bb0da226a33392299758
nvme: fix visibility of "uuid" ns attribute

"uuid" must be invisible if both ns->uuid and ns->nguid are unset,
not if either one is.

Fixes: 3188aaf23a68 "nvme: provide UUID value to userspace"
Signed-off-by: Martin Wilck <mwilck@suse.com>
[hch: rebased to the nvme-4.15 tree to help resolving a conflict]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c