]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0 |
48ec2905 DC |
2 | /* |
3 | * Copyright (c) 2012 Red Hat, Inc. | |
4 | * All Rights Reserved. | |
48ec2905 DC |
5 | */ |
6 | #ifndef XFS_SPACEMAN_SPACE_H_ | |
7 | #define XFS_SPACEMAN_SPACE_H_ | |
8 | ||
10cfd61e | 9 | struct fileio { |
a509ad57 | 10 | struct xfs_fd xfd; /* XFS runtime support context */ |
cccf6abc | 11 | struct fs_path fs_path; /* XFS path information */ |
48ec2905 | 12 | char *name; /* file name at time of open */ |
10cfd61e | 13 | }; |
48ec2905 | 14 | |
10cfd61e | 15 | extern struct fileio *filetable; /* open file table */ |
48ec2905 | 16 | extern int filecount; /* number of open files */ |
10cfd61e | 17 | extern struct fileio *file; /* active file in file table */ |
48ec2905 | 18 | |
a509ad57 DW |
19 | extern int openfile(char *path, struct xfs_fd *xfd, |
20 | struct fs_path *fs_path); | |
21 | extern int addfile(char *path, struct xfs_fd *xfd, | |
22 | struct fs_path *fs_path); | |
48ec2905 DC |
23 | |
24 | extern void print_init(void); | |
25 | extern void help_init(void); | |
c98132d1 | 26 | extern void prealloc_init(void); |
48ec2905 | 27 | extern void quit_init(void); |
c6e8a429 | 28 | extern void trim_init(void); |
cccf6abc DC |
29 | #ifdef HAVE_GETFSMAP |
30 | extern void freesp_init(void); | |
31 | #else | |
32 | # define freesp_init() do { } while (0) | |
33 | #endif | |
6719d622 | 34 | extern void info_init(void); |
bb85ae74 | 35 | extern void health_init(void); |
48ec2905 DC |
36 | |
37 | #endif /* XFS_SPACEMAN_SPACE_H_ */ |