#include <stdint.h>
#include <lustre/lustre_user.h>
+#ifndef LL_MAXQUOTAS
+#define LL_MAXQUOTAS 3
+#endif
+
extern bool liblustreapi_initialized;
extern int llapi_get_poolmembers(const char *poolname, char **members,
int list_size, char *buffer, int buffer_size);
extern int llapi_file_get_stripe(const char *path, struct lov_user_md *lum);
-#define HAVE_LLAPI_FILE_LOOKUP
extern int llapi_file_lookup(int dirfd, const char *name);
#define VERBOSE_COUNT 0x1
#define VERBOSE_DEFAULT (VERBOSE_COUNT | VERBOSE_SIZE | \
VERBOSE_OFFSET | VERBOSE_POOL | \
VERBOSE_OBJID | VERBOSE_GENERATION | \
- VERBOSE_LAYOUT | VERBOSE_HASH_TYPE)
+ VERBOSE_LAYOUT | VERBOSE_HASH_TYPE | \
+ VERBOSE_COMP_COUNT | VERBOSE_COMP_FLAGS | \
+ VERBOSE_COMP_START | VERBOSE_COMP_END | \
+ VERBOSE_COMP_ID)
struct find_param {
unsigned int fp_max_depth;
/* these need to be signed values */
int fp_size_sign:2,
fp_stripe_size_sign:2,
- fp_stripe_count_sign:2;
+ fp_stripe_count_sign:2,
+ fp_comp_start_sign:2,
+ fp_comp_end_sign:2,
+ fp_comp_count_sign:2,
+ fp_mdt_count_sign:2;
unsigned long long fp_size;
unsigned long long fp_size_units;
- unsigned long fp_zero_end:1,
+ unsigned long long fp_zero_end:1,
fp_recursive:1,
fp_exclude_pattern:1,
fp_exclude_type:1,
fp_check_layout:1,
fp_exclude_layout:1,
fp_get_default_lmv:1, /* Get default LMV */
- fp_migrate:1;
+ fp_migrate:1,
+ fp_check_comp_count:1,
+ fp_exclude_comp_count:1,
+ fp_check_comp_flags:1,
+ fp_exclude_comp_flags:1,
+ fp_check_comp_start:1,
+ fp_exclude_comp_start:1,
+ fp_check_comp_end:1,
+ fp_exclude_comp_end:1,
+ fp_check_comp_id:1,
+ fp_exclude_comp_id:1,
+ fp_check_mdt_count:1,
+ fp_exclude_mdt_count:1,
+ fp_check_hash_type:1,
+ fp_exclude_hash_type:1;
int fp_verbose;
int fp_quiet;
unsigned long long fp_stripe_count;
__u32 fp_layout;
+ __u32 fp_comp_count;
+ __u32 fp_comp_flags;
+ __u32 fp_comp_id;
+ unsigned long long fp_comp_start;
+ unsigned long long fp_comp_start_units;
+ unsigned long long fp_comp_end;
+ unsigned long long fp_comp_end_units;
+ unsigned long long fp_mdt_count;
+
/* In-process parameters. */
unsigned long fp_got_uuids:1,
fp_obds_printed:1;
unsigned int fp_depth;
+ unsigned int fp_hash_type;
};
extern int llapi_ostlist(char *path, struct find_param *param);
extern int llapi_changelog_fini(void **priv);
extern int llapi_changelog_recv(void *priv, struct changelog_rec **rech);
extern int llapi_changelog_free(struct changelog_rec **rech);
+extern int llapi_changelog_get_fd(void *priv);
/* Allow records up to endrec to be destroyed; requires registered id. */
extern int llapi_changelog_clear(const char *mdtname, const char *idstr,
long long endrec);