1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2002 Cluster File Systems, Inc.
5 * Author: Peter J. Braam <braam@clusterfs.com>
6 * Author: Phil Schwan <phil@clusterfs.com>
7 * Author: Brian Behlendorf <behlendorf1@llnl.gov>
8 * Author: Robert Read <rread@clusterfs.com>
10 * This file is part of Lustre, http://www.lustre.org.
12 * Lustre is free software; you can redistribute it and/or
13 * modify it under the terms of version 2 of the GNU General Public
14 * License as published by the Free Software Foundation.
16 * Lustre is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with Lustre; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef _LIBLUSTREAPI_H_
27 #define _LIBLUSTREAPI_H_
29 #include <lustre/lustre_user.h>
32 extern int llapi_file_create(char *name, long stripe_size, int stripe_offset,
33 int stripe_count, int stripe_pattern);
34 extern int llapi_file_get_stripe(char *path, struct lov_user_md *lum);
35 extern int llapi_find(char *path, struct obd_uuid *obduuid, int recursive,
36 int verbose, int quiet, int showfid);
37 extern int llapi_target_check(int num_types, char **obd_types, char *dir);
38 extern int llapi_catinfo(char *dir, char *keyword, char *node_name);
39 extern int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count);
40 extern int llapi_is_lustre_mnttype(char *type);