Code

cbe0a09487774bd0ad0e2d6dfef5ef7bb5d21ace
[collectd.git] / src / quota_mnt.h
1 /**
2  * collectd - src/quota_mnt.h
3  * Copyright (C) 2005  Niki W. Waibel
4  *
5  * This program is free software; you can redistribute it and/
6  * or modify it under the terms of the GNU General Public Li-
7  * cence as published by the Free Software Foundation; either
8  * version 2 of the Licence, or any later version.
9  *
10  * This program is distributed in the hope that it will be use-
11  * ful, but WITHOUT ANY WARRANTY; without even the implied war-
12  * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public Licence for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * Licence along with this program; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
18  * USA.
19  *
20  * Author:
21  *   Niki W. Waibel <niki.waibel@gmx.net>
22 **/
24 #if !COLLECTD_QUOTA_MNT_H
25 #define COLLECTD_QUOTA_MNT_H 1
27 #include "common.h"
29 /* Quota Mount Type */
30 #define QMT_UNKNOWN (0)
31 #define QMT_EXT2    (1)
32 #define QMT_EXT3    (2)
33 #define QMT_XFS     (3)
34 #define QMT_UFS     (4)
35 #define QMT_VXFS    (5)
36 #define QMT_ZFS     (6)
38 /* Quota Mount Options */
39 #define QMO_NONE     (0)
40 #define QMO_USRQUOTA (1)
41 #define QMO_GRPQUOTA (2)
43 typedef struct _quota_mnt_t quota_mnt_t;
44 struct _quota_mnt_t {
45         char *dir;
46         char *device;
47         char *type;
48         char *usrjquota;
49         char *grpjquota;
50         char *jqfmt;
51         int opts;
52         quota_mnt_t *next;
53 };
55 int quota_mnt_type(const char *type);
57 quota_mnt_t *quota_mnt_getlist(quota_mnt_t **list);
58 void quota_mnt_freelist(quota_mnt_t *list);
60 #endif /* !COLLECTD_QUOTA_MNT_H */