#define LL_SBI_LRU_RESIZE 0x400 /* lru resize support */
#define LL_SBI_LAZYSTATFS 0x800 /* lazystatfs mount option */
/* LL_SBI_SOM_PREVIEW 0x1000 SOM preview mount option, obsolete */
+#define LL_SBI_SNAPSHOT 0x1000 /* snapshot mount */
#define LL_SBI_32BIT_API 0x2000 /* generate 32 bit inodes. */
#define LL_SBI_64BIT_HASH 0x4000 /* support 64-bits dir hash/offset */
#define LL_SBI_AGL_ENABLED 0x8000 /* enable agl */
#define LL_SBI_FILE_HEAT 0x4000000 /* file heat support */
#define LL_SBI_TEST_DUMMY_ENCRYPTION 0x8000000 /* test dummy encryption */
#define LL_SBI_ENCRYPT 0x10000000 /* client side encryption */
+/*#define LL_SBI_FOREIGN_SYMLINK 0x20000000 * foreign fake-symlink support */
+/*#define LL_SBI_FOREIGN_UPCALL 0x40000000 * fake-symlink upcall registered */
#define LL_SBI_PARALLEL_DIO 0x80000000 /* parallel (async) submission of
RPCs for DIO */
#define LL_SBI_FLAGS { \
"name_encrypt", \
"mds_capa", \
"oss_capa", \
- "flock", \
+ "localflock", \
"lru_resize", \
"lazy_statfs", \
- "som", \
+ "snapshot", \
"32bit_api", \
"64bit_hash", \
"agl", \
"file_heat", \
"test_dummy_encryption", \
"noencrypt", \
- "snapshot", \
- "???", \
+ "foreign_symlink", \
+ "foreign_symlink_upcall", \
"parallel_dio", \
}
struct dentry *ll_debugfs_entry;
struct lu_fid ll_root_fid; /* root object fid */
- int ll_flags;
+ unsigned int ll_flags;
unsigned int ll_xattr_cache_enabled:1,
ll_xattr_cache_set:1, /* already set to 0/1 */
ll_client_common_fill_super_succeeded:1,
EXIT;
}
-static inline int ll_set_opt(const char *opt, char *data, int fl)
+static inline unsigned long ll_set_opt(const char *opt, char *data,
+ unsigned int fl)
{
if (strncmp(opt, data, strlen(opt)) != 0)
return 0;
/* non-client-specific mount options are parsed in lmd_parse */
static int ll_options(char *options, struct ll_sb_info *sbi)
{
- int tmp;
+ unsigned int tmp;
char *s1 = options, *s2;
- int *flags = &sbi->ll_flags;
+ unsigned int *flags = &sbi->ll_flags;
ENTRY;
if (!options)
{
const char *str[] = LL_SBI_FLAGS;
struct super_block *sb = m->private;
- int flags = ll_s2sbi(sb)->ll_flags;
- int i = 0;
+ unsigned int flags = ll_s2sbi(sb)->ll_flags;
+ unsigned int i = 0;
while (flags != 0) {
if (ARRAY_SIZE(str) <= i) {