]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - spaceman/space.h
misc: remove all use of xfs_fsop_geom_t
[thirdparty/xfsprogs-dev.git] / spaceman / space.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2012 Red Hat, Inc.
4 * All Rights Reserved.
5 */
6 #ifndef XFS_SPACEMAN_SPACE_H_
7 #define XFS_SPACEMAN_SPACE_H_
8
9 typedef struct fileio {
10 struct xfs_fsop_geom geom; /* XFS filesystem geometry */
11 struct fs_path fs_path; /* XFS path information */
12 char *name; /* file name at time of open */
13 int fd; /* open file descriptor */
14 } fileio_t;
15
16 extern fileio_t *filetable; /* open file table */
17 extern int filecount; /* number of open files */
18 extern fileio_t *file; /* active file in file table */
19
20 extern int openfile(char *, struct xfs_fsop_geom *, struct fs_path *);
21 extern int addfile(char *, int , struct xfs_fsop_geom *, struct fs_path *);
22
23 extern void print_init(void);
24 extern void help_init(void);
25 extern void prealloc_init(void);
26 extern void quit_init(void);
27 extern void trim_init(void);
28 #ifdef HAVE_GETFSMAP
29 extern void freesp_init(void);
30 #else
31 # define freesp_init() do { } while (0)
32 #endif
33 extern void info_init(void);
34
35 #endif /* XFS_SPACEMAN_SPACE_H_ */