]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libxfs/init.h
libfrog: move platform specific runtime support code out of libxfs
[thirdparty/xfsprogs-dev.git] / libxfs / init.h
1 /*
2 * Copyright (c) 2000-2006 Silicon Graphics, 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 LIBXFS_INIT_H
19 #define LIBXFS_INIT_H
20
21 struct stat;
22
23 extern int platform_check_ismounted (char *path, char *block,
24 struct stat *sptr, int verbose);
25 extern int platform_check_iswritable (char *path, char *block, struct stat *sptr);
26 extern int platform_set_blocksize (int fd, char *path, dev_t device, int bsz, int fatal);
27 extern void platform_flush_device (int fd, dev_t device);
28 extern char *platform_findrawpath(char *path);
29 extern char *platform_findrawpath (char *path);
30 extern char *platform_findblockpath (char *path);
31 extern int platform_direct_blockdev (void);
32 extern int platform_align_blockdev (void);
33 extern unsigned long platform_physmem(void); /* in kilobytes */
34 extern int platform_has_uuid;
35
36 #endif /* LIBXFS_INIT_H */