]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - spaceman/space.h
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2012 Red Hat, Inc.
6 #ifndef XFS_SPACEMAN_SPACE_H_
7 #define XFS_SPACEMAN_SPACE_H_
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 */
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 */
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
*);
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);
29 extern void freesp_init(void);
31 # define freesp_init() do { } while (0)
33 extern void info_init(void);
35 #endif /* XFS_SPACEMAN_SPACE_H_ */