1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This file is part of Lustre, http://www.lustre.org
6 #ifndef _LIBLUSTREAPI_H_
7 #define _LIBLUSTREAPI_H_
9 #include <lustre/lustre_user.h>
11 typedef void (*llapi_cb_t)(char *obd_type_name, char *obd_name, char *obd_uuid, void *args);
14 extern int llapi_file_create(const char *name, long stripe_size,
15 int stripe_offset, int stripe_count,
17 extern int llapi_file_get_stripe(const char *path, struct lov_user_md *lum);
18 #define HAVE_LLAPI_FILE_LOOKUP
19 extern int llapi_file_lookup(int dirfd, const char *name);
22 unsigned int maxdepth;
30 int zeroend:1, recursive:1, got_uuids:1, obds_printed:1;
37 struct obd_uuid *obduuid;
41 struct lov_user_mds_data *lmd;
43 /* In-precess parameters. */
48 extern int llapi_getstripe(char *path, struct find_param *param);
49 extern int llapi_find(char *path, struct find_param *param);
51 extern int llapi_obd_statfs(char *path, __u32 type, __u32 index,
52 struct obd_statfs *stat_buf,
53 struct obd_uuid *uuid_buf);
54 extern int llapi_ping(char *obd_type, char *obd_name);
55 extern int llapi_target_check(int num_types, char **obd_types, char *dir);
56 extern int llapi_catinfo(char *dir, char *keyword, char *node_name);
57 extern int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count);
58 extern int llapi_is_lustre_mnttype(struct mntent *mnt);
59 extern int llapi_quotachown(char *path, int flag);
60 extern int llapi_quotacheck(char *mnt, int check_type);
61 extern int llapi_poll_quotacheck(char *mnt, struct if_quotacheck *qchk);
62 extern int llapi_quotactl(char *mnt, struct if_quotactl *qctl);
63 extern int llapi_target_iterate(int type_num, char **obd_type, void *args, llapi_cb_t cb);