-extern int llapi_file_create(char *name, long stripe_size, int stripe_offset,
- int stripe_count, int stripe_pattern);
-extern int llapi_file_get_stripe(char *path, struct lov_user_md *lum);
-extern int llapi_find(char *path, struct obd_uuid *obduuid, int recursive,
- int verbose, int quiet);
+extern void llapi_msg_set_level(int level);
+extern void llapi_err(int level, char *fmt, ...);
+extern void llapi_printf(int level, char *fmt, ...);
+extern int llapi_file_create(const char *name, unsigned long stripe_size,
+ int stripe_offset, int stripe_count,
+ int stripe_pattern);
+extern int llapi_file_open(const char *name, int flags, int mode,
+ unsigned long stripe_size, int stripe_offset,
+ int stripe_count, int stripe_pattern);
+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);
+
+struct find_param {
+ unsigned int maxdepth;
+ time_t atime;
+ time_t mtime;
+ time_t ctime;
+ int asign;
+ int csign;
+ int msign;
+ int type;
+ unsigned long long size;
+ int size_sign;
+ unsigned long long size_units;
+ uid_t uid;
+ gid_t gid;
+
+ unsigned long zeroend:1,
+ recursive:1,
+ got_uuids:1,
+ obds_printed:1,
+ exclude_pattern:1,
+ exclude_type:1,
+ have_fileinfo:1,
+ exclude_gid:1,
+ exclude_uid:1,
+ check_gid:1,
+ check_uid:1;
+
+ int verbose;
+ int quiet;
+
+ /* regular expression */
+ char *pattern;
+
+ char *print_fmt;
+
+ struct obd_uuid *obduuid;
+ int num_obds;
+ int num_alloc_obds;
+ int obdindex;
+ int *obdindexes;
+
+ int lumlen;
+ struct lov_user_mds_data *lmd;
+
+ /* In-precess parameters. */
+ unsigned int depth;
+ dev_t st_dev;
+};
+
+extern int llapi_getstripe(char *path, struct find_param *param);
+extern int llapi_find(char *path, struct find_param *param);
+
+extern int llapi_obd_statfs(char *path, __u32 type, __u32 index,
+ struct obd_statfs *stat_buf,
+ struct obd_uuid *uuid_buf);
+extern int llapi_ping(char *obd_type, char *obd_name);