]>
Commit | Line | Data |
---|---|---|
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 | ||
21 | typedef 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 | ||
27 | extern fileio_t *filetable; /* open file table */ | |
28 | extern int filecount; /* number of open files */ | |
29 | extern fileio_t *file; /* active file in file table */ | |
30 | ||
31 | extern int openfile(char *, xfs_fsop_geom_t *); | |
32 | extern int addfile(char *, int , xfs_fsop_geom_t *); | |
33 | ||
34 | extern void print_init(void); | |
35 | extern void help_init(void); | |
36 | extern void quit_init(void); | |
37 | ||
38 | #endif /* XFS_SPACEMAN_SPACE_H_ */ |