mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
0cea4c097d
We are about to add new mount options for adding lowerdir one by one, but those mount options will not support escaping. For the existing case, where lowerdir mount option is provided as a colon separated list, store the user provided (possibly escaped) string and display it as is when showing the lowerdir mount option. Signed-off-by: Amir Goldstein <amir73il@gmail.com>
44 lines
1.0 KiB
C
44 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <linux/fs_context.h>
|
|
#include <linux/fs_parser.h>
|
|
|
|
struct ovl_fs;
|
|
struct ovl_config;
|
|
|
|
extern const struct fs_parameter_spec ovl_parameter_spec[];
|
|
extern const struct constant_table ovl_parameter_redirect_dir[];
|
|
|
|
/* The set of options that user requested explicitly via mount options */
|
|
struct ovl_opt_set {
|
|
bool metacopy;
|
|
bool redirect;
|
|
bool nfs_export;
|
|
bool index;
|
|
};
|
|
|
|
#define OVL_MAX_STACK 500
|
|
|
|
struct ovl_fs_context_layer {
|
|
char *name;
|
|
struct path path;
|
|
};
|
|
|
|
struct ovl_fs_context {
|
|
struct path upper;
|
|
struct path work;
|
|
size_t capacity;
|
|
size_t nr; /* includes nr_data */
|
|
size_t nr_data;
|
|
struct ovl_opt_set set;
|
|
struct ovl_fs_context_layer *lower;
|
|
char *lowerdir_all; /* user provided lowerdir string */
|
|
};
|
|
|
|
int ovl_init_fs_context(struct fs_context *fc);
|
|
void ovl_free_fs(struct ovl_fs *ofs);
|
|
int ovl_fs_params_verify(const struct ovl_fs_context *ctx,
|
|
struct ovl_config *config);
|
|
int ovl_show_options(struct seq_file *m, struct dentry *dentry);
|
|
const char *ovl_xino_mode(struct ovl_config *config);
|