File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 13
13
#include <linux/ucs2_string.h>
14
14
#include <linux/slab.h>
15
15
#include <linux/magic.h>
16
+ #include <linux/printk.h>
16
17
17
18
#include "internal.h"
18
19
@@ -231,8 +232,19 @@ static int efivarfs_get_tree(struct fs_context *fc)
231
232
return get_tree_single (fc , efivarfs_fill_super );
232
233
}
233
234
235
+ static int efivarfs_reconfigure (struct fs_context * fc )
236
+ {
237
+ if (!efivar_supports_writes () && !(fc -> sb_flags & SB_RDONLY )) {
238
+ pr_err ("Firmware does not support SetVariableRT. Can not remount with rw\n" );
239
+ return - EINVAL ;
240
+ }
241
+
242
+ return 0 ;
243
+ }
244
+
234
245
static const struct fs_context_operations efivarfs_context_ops = {
235
246
.get_tree = efivarfs_get_tree ,
247
+ .reconfigure = efivarfs_reconfigure ,
236
248
};
237
249
238
250
static int efivarfs_init_fs_context (struct fs_context * fc )
You can’t perform that action at this time.
0 commit comments