]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - spaceman/space.h
2 * Copyright (c) 2012 Red Hat, Inc.
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.
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.
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
18 #ifndef XFS_SPACEMAN_SPACE_H_
19 #define XFS_SPACEMAN_SPACE_H_
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 */
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 */
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
*);
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);
41 extern void freesp_init(void);
43 # define freesp_init() do { } while (0)
46 #endif /* XFS_SPACEMAN_SPACE_H_ */