diff options
Diffstat (limited to 'src/pmdas/linux_xfs/clusters.h')
-rw-r--r-- | src/pmdas/linux_xfs/clusters.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/pmdas/linux_xfs/clusters.h b/src/pmdas/linux_xfs/clusters.h new file mode 100644 index 0000000..a984343 --- /dev/null +++ b/src/pmdas/linux_xfs/clusters.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2013 Red Hat. + * Copyright (c) 2005,2007-2008 Silicon Graphics, Inc. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#ifndef _CLUSTERS_H +#define _CLUSTERS_H + +/* + * PMID cluster values ... to manage the PMID migration after the + * linux -> linux + xfs PMDAs split, these need to match the enum + * assigned values for CLUSTER_* from the original Linux PMDA. + */ +#define CLUSTER_XFS 16 /* /proc/fs/xfs/stat */ +#define CLUSTER_XFSBUF 17 /* /proc/fs/pagebuf/stat */ +#define CLUSTER_QUOTA 30 /* quotactl() */ + +#define MIN_CLUSTER 16 /* first cluster number we use here */ +#define NUM_CLUSTERS 31 /* one more than highest cluster number used */ + +#endif /* _CLUSTERS_H */ |