]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - spaceman/space.h
xfs: check type in quota verifier during quotacheck
[thirdparty/xfsprogs-dev.git] / spaceman / space.h
CommitLineData
48ec2905
DC
1/*
2 * Copyright (c) 2012 Red Hat, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18#ifndef XFS_SPACEMAN_SPACE_H_
19#define XFS_SPACEMAN_SPACE_H_
20
21typedef struct fileio {
22 xfs_fsop_geom_t geom; /* XFS filesystem geometry */
cccf6abc 23 struct fs_path fs_path; /* XFS path information */
48ec2905
DC
24 char *name; /* file name at time of open */
25 int fd; /* open file descriptor */
26} fileio_t;
27
28extern fileio_t *filetable; /* open file table */
29extern int filecount; /* number of open files */
30extern fileio_t *file; /* active file in file table */
31
cccf6abc
DC
32extern int openfile(char *, xfs_fsop_geom_t *, struct fs_path *);
33extern int addfile(char *, int , xfs_fsop_geom_t *, struct fs_path *);
48ec2905
DC
34
35extern void print_init(void);
36extern void help_init(void);
c98132d1 37extern void prealloc_init(void);
48ec2905 38extern void quit_init(void);
c6e8a429 39extern void trim_init(void);
cccf6abc
DC
40#ifdef HAVE_GETFSMAP
41extern void freesp_init(void);
42#else
43# define freesp_init() do { } while (0)
44#endif
6719d622 45extern void info_init(void);
48ec2905
DC
46
47#endif /* XFS_SPACEMAN_SPACE_H_ */