提交 79aec2b8 编写于 作者: A Anand Jain 提交者: Chris Mason

btrfs: sysfs label interface should check for read only FS

Not sure how this escaped many eyes so far
Signed-off-by: NAnand Jain <anand.jain@oracle.com>
Signed-off-by: NChris Mason <clm@fb.com>
上级 20ee0825
......@@ -377,6 +377,9 @@ static ssize_t btrfs_label_store(struct kobject *kobj,
int ret;
size_t p_len;
if (fs_info->sb->s_flags & MS_RDONLY)
return -EROFS;
/*
* p_len is the len until the first occurrence of either
* '\n' or '\0'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册