]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libxfs/init.h
b23e493c8ddccdbc3106983b1f8a3639d4c474d3
[thirdparty/xfsprogs-dev.git] / libxfs / init.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6 #ifndef LIBXFS_INIT_H
7 #define LIBXFS_INIT_H
8
9 struct stat;
10 extern int use_xfs_buf_lock;
11
12 extern int platform_check_ismounted (char *path, char *block,
13 struct stat *sptr, int verbose);
14 extern int platform_check_iswritable (char *path, char *block, struct stat *sptr);
15 extern int platform_set_blocksize (int fd, char *path, dev_t device, int bsz, int fatal);
16 extern void platform_flush_device (int fd, dev_t device);
17 extern char *platform_findrawpath(char *path);
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);
22 extern unsigned long platform_physmem(void); /* in kilobytes */
23 extern void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
24 extern int platform_nproc(void);
25
26 #endif /* LIBXFS_INIT_H */