]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - libfrog/platform.h
libxfs: complain when write IOs fail
[thirdparty/xfsprogs-dev.git] / libfrog / platform.h
CommitLineData
b658de93
DW
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6
7#ifndef __LIBFROG_PLATFORM_H__
8#define __LIBFROG_PLATFORM_H__
9
10int platform_check_ismounted(char *path, char *block, struct stat *sptr,
11 int verbose);
12int platform_check_iswritable(char *path, char *block, struct stat *sptr);
13int platform_set_blocksize(int fd, char *path, dev_t device, int bsz,
14 int fatal);
15void platform_flush_device(int fd, dev_t device);
16char *platform_findrawpath(char *path);
17char *platform_findblockpath(char *path);
18int platform_direct_blockdev(void);
19int platform_align_blockdev(void);
20unsigned long platform_physmem(void); /* in kilobytes */
21void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
22int platform_nproc(void);
23
24void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
25
26#endif /* __LIBFROG_PLATFORM_H__ */