提交 680895d6 编写于 作者: C Christoph Hellwig

sysctl: switch to use uuid_t

Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NAmir Goldstein <amir73il@gmail.com>
Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 59b9c629
...@@ -1119,7 +1119,7 @@ static ssize_t bin_uuid(struct file *file, ...@@ -1119,7 +1119,7 @@ static ssize_t bin_uuid(struct file *file,
/* Only supports reads */ /* Only supports reads */
if (oldval && oldlen) { if (oldval && oldlen) {
char buf[UUID_STRING_LEN + 1]; char buf[UUID_STRING_LEN + 1];
uuid_be uuid; uuid_t uuid;
result = kernel_read(file, 0, buf, sizeof(buf) - 1); result = kernel_read(file, 0, buf, sizeof(buf) - 1);
if (result < 0) if (result < 0)
...@@ -1128,7 +1128,7 @@ static ssize_t bin_uuid(struct file *file, ...@@ -1128,7 +1128,7 @@ static ssize_t bin_uuid(struct file *file,
buf[result] = '\0'; buf[result] = '\0';
result = -EIO; result = -EIO;
if (uuid_be_to_bin(buf, &uuid)) if (uuid_parse(buf, &uuid))
goto out; goto out;
if (oldlen > 16) if (oldlen > 16)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册