Whamcloud - gitweb
- update from b1_4_mountconf
[fs/lustre-release.git] / lustre / include / lustre / liblustreapi.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *   This file is part of Lustre, http://www.lustre.org
5  */
6 #ifndef _LIBLUSTREAPI_H_
7 #define _LIBLUSTREAPI_H_
8
9 #include <lustre/lustre_user.h>
10
11 typedef void (*llapi_cb_t)(char *obd_type_name, char *obd_name, char *obd_uuid, void *args);
12
13 /* liblustreapi.c */
14 extern int llapi_file_create(char *name, long stripe_size, int stripe_offset,
15                              int stripe_count, int stripe_pattern);
16 extern int llapi_file_get_stripe(char *path, struct lov_user_md *lum);
17 extern int llapi_find(char *path, struct obd_uuid *obduuid, int recursive,
18                       int verbose, int quiet);
19 extern int llapi_obd_statfs(char *path, __u32 type, __u32 index,
20                      struct obd_statfs *stat_buf,
21                      struct obd_uuid *uuid_buf);
22 extern int llapi_ping(char *obd_type, char *obd_name);
23 extern int llapi_target_check(int num_types, char **obd_types, char *dir);
24 extern int llapi_catinfo(char *dir, char *keyword, char *node_name);
25 extern int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count);
26 extern int llapi_is_lustre_mnttype(struct mntent *mnt);
27 extern int llapi_quotachown(char *path, int flag);
28 extern int llapi_quotacheck(char *mnt, int check_type);
29 extern int llapi_poll_quotacheck(char *mnt, struct if_quotacheck *qchk);
30 extern int llapi_quotactl(char *mnt, struct if_quotactl *qctl);
31 extern int llapi_target_iterate(int type_num, char **obd_type, void *args, llapi_cb_t cb);
32 #endif