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'
return ret;
}
-BTRFS_ATTR_RW(label, 0644, btrfs_label_show, btrfs_label_store);
+BTRFS_ATTR_RW(label, btrfs_label_show, btrfs_label_store);
static ssize_t btrfs_nodesize_show(struct kobject *kobj,
struct kobj_attribute *a, char *buf)