]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2bd0ea18 | 2 | /* |
b74a1f6a | 3 | * Copyright (c) 2000-2006 Silicon Graphics, Inc. |
da23017d | 4 | * All Rights Reserved. |
2bd0ea18 | 5 | */ |
9440d84d NS |
6 | #ifndef LIBXFS_INIT_H |
7 | #define LIBXFS_INIT_H | |
2bd0ea18 | 8 | |
f594a0d1 | 9 | struct stat; |
28e36fcc | 10 | extern int use_xfs_buf_lock; |
9440d84d | 11 | |
93d9f139 | 12 | extern int platform_check_ismounted (char *path, char *block, |
f594a0d1 FJ |
13 | struct stat *sptr, int verbose); |
14 | extern int platform_check_iswritable (char *path, char *block, struct stat *sptr); | |
edd45774 | 15 | extern int platform_set_blocksize (int fd, char *path, dev_t device, int bsz, int fatal); |
ac419944 | 16 | extern void platform_flush_device (int fd, dev_t device); |
cb5b3ef4 | 17 | extern char *platform_findrawpath(char *path); |
b74a1f6a NS |
18 | extern char *platform_findrawpath (char *path); |
19 | extern char *platform_findblockpath (char *path); | |
20 | extern int platform_direct_blockdev (void); | |
21 | extern int platform_align_blockdev (void); | |
2556c98b | 22 | extern unsigned long platform_physmem(void); /* in kilobytes */ |
12812407 ES |
23 | extern void platform_findsizes(char *path, int fd, long long *sz, int *bsz); |
24 | extern int platform_nproc(void); | |
b74a1f6a | 25 | |
9440d84d | 26 | #endif /* LIBXFS_INIT_H */ |