xref: /aosp_15_r20/external/e2fsprogs/lib/support/plausible.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker /*
2*6a54128fSAndroid Build Coastguard Worker  * plausible.h --- header file defining prototypes for helper functions
3*6a54128fSAndroid Build Coastguard Worker  * used by tune2fs and mke2fs
4*6a54128fSAndroid Build Coastguard Worker  *
5*6a54128fSAndroid Build Coastguard Worker  * Copyright 2014 by Oracle, Inc.
6*6a54128fSAndroid Build Coastguard Worker  *
7*6a54128fSAndroid Build Coastguard Worker  * %Begin-Header%
8*6a54128fSAndroid Build Coastguard Worker  * This file may be redistributed under the terms of the GNU Public
9*6a54128fSAndroid Build Coastguard Worker  * License.
10*6a54128fSAndroid Build Coastguard Worker  * %End-Header%
11*6a54128fSAndroid Build Coastguard Worker  */
12*6a54128fSAndroid Build Coastguard Worker 
13*6a54128fSAndroid Build Coastguard Worker #ifndef PLAUSIBLE_H_
14*6a54128fSAndroid Build Coastguard Worker #define PLAUSIBLE_H_
15*6a54128fSAndroid Build Coastguard Worker 
16*6a54128fSAndroid Build Coastguard Worker /*
17*6a54128fSAndroid Build Coastguard Worker  * Flags for check_plausibility()
18*6a54128fSAndroid Build Coastguard Worker  */
19*6a54128fSAndroid Build Coastguard Worker #define CHECK_BLOCK_DEV	0x0001
20*6a54128fSAndroid Build Coastguard Worker #define CREATE_FILE	0x0002
21*6a54128fSAndroid Build Coastguard Worker #define CHECK_FS_EXIST	0x0004
22*6a54128fSAndroid Build Coastguard Worker #define VERBOSE_CREATE	0x0008
23*6a54128fSAndroid Build Coastguard Worker #define NO_SIZE		0x0010
24*6a54128fSAndroid Build Coastguard Worker #define QUIET_CHECK	0x0020
25*6a54128fSAndroid Build Coastguard Worker 
26*6a54128fSAndroid Build Coastguard Worker extern int check_plausibility(const char *device, int flags,
27*6a54128fSAndroid Build Coastguard Worker 			      int *ret_is_dev);
28*6a54128fSAndroid Build Coastguard Worker 
29*6a54128fSAndroid Build Coastguard Worker #endif /* PLAUSIBLE_H_ */
30