Commit f871749a authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Jens Axboe

nvmet: move device_uuid configfs attr definition to suitable place

Signed-off-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b435ecea
...@@ -333,13 +333,13 @@ static ssize_t nvmet_ns_device_uuid_store(struct config_item *item, ...@@ -333,13 +333,13 @@ static ssize_t nvmet_ns_device_uuid_store(struct config_item *item,
return ret ? ret : count; return ret ? ret : count;
} }
CONFIGFS_ATTR(nvmet_ns_, device_uuid);
static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page) static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page)
{ {
return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid); return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid);
} }
CONFIGFS_ATTR(nvmet_ns_, device_uuid);
static ssize_t nvmet_ns_device_nguid_store(struct config_item *item, static ssize_t nvmet_ns_device_nguid_store(struct config_item *item,
const char *page, size_t count) const char *page, size_t count)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment