]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - spaceman/space.h
xfs_repair: only update in-core extent state after scanning full extent
[thirdparty/xfsprogs-dev.git] / spaceman / space.h
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
21 typedef struct fileio {
22 xfs_fsop_geom_t geom; /* XFS filesystem geometry */
23 struct fs_path fs_path; /* XFS path information */
24 char *name; /* file name at time of open */
25 int fd; /* open file descriptor */
26 } fileio_t;
27
28 extern fileio_t *filetable; /* open file table */
29 extern int filecount; /* number of open files */
30 extern fileio_t *file; /* active file in file table */
31
32 extern int openfile(char *, xfs_fsop_geom_t *, struct fs_path *);
33 extern int addfile(char *, int , xfs_fsop_geom_t *, struct fs_path *);
34
35 extern void print_init(void);
36 extern void help_init(void);
37 extern void prealloc_init(void);
38 extern void quit_init(void);
39 extern void trim_init(void);
40 #ifdef HAVE_GETFSMAP
41 extern void freesp_init(void);
42 #else
43 # define freesp_init() do { } while (0)
44 #endif
45
46 #endif /* XFS_SPACEMAN_SPACE_H_ */