Commit 79aec2b8 authored by Anand Jain's avatar Anand Jain Committed by Chris Mason

btrfs: sysfs label interface should check for read only FS

Not sure how this escaped many eyes so far
Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment