]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - spaceman/space.h
xfs_spaceman: add FITRIM support
[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 */
23 char *name; /* file name at time of open */
24 int fd; /* open file descriptor */
25} fileio_t;
26
27extern fileio_t *filetable; /* open file table */
28extern int filecount; /* number of open files */
29extern fileio_t *file; /* active file in file table */
30
31extern int openfile(char *, xfs_fsop_geom_t *);
32extern int addfile(char *, int , xfs_fsop_geom_t *);
33
34extern void print_init(void);
35extern void help_init(void);
36extern void quit_init(void);
c6e8a429 37extern void trim_init(void);
48ec2905
DC
38
39#endif /* XFS_SPACEMAN_SPACE_H_ */