diff options
| author | Manuel Bentele | 2020-10-23 15:18:01 +0200 |
|---|---|---|
| committer | Manuel Bentele | 2020-10-23 15:18:01 +0200 |
| commit | dbb41ce2b7f309d394054a6bd1e33afd578798a5 (patch) | |
| tree | 6a31092063d9f2fb5ac5720ec6759040e793c3d5 /kernel/tests/include/lapi/fs.h | |
| parent | Set Linux kernel version to unknown if it is not detectable (diff) | |
| download | xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.gz xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.xz xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.zip | |
Move the source code of all xloop components to the common 'src' directory
Diffstat (limited to 'kernel/tests/include/lapi/fs.h')
| -rw-r--r-- | kernel/tests/include/lapi/fs.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/kernel/tests/include/lapi/fs.h b/kernel/tests/include/lapi/fs.h deleted file mode 100644 index 430d21f..0000000 --- a/kernel/tests/include/lapi/fs.h +++ /dev/null @@ -1,66 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Referred from linux kernel include/uapi/linux/fs.h - * Copyright (c) 2019 Petr Vorel <pvorel@suse.cz> - * Copyright (c) Zilogic Systems Pvt. Ltd., 2018 - * Email: code@zilogic.com - */ - -#ifdef HAVE_LINUX_FS_H -# include <linux/fs.h> -#endif - -#include <sys/user.h> -#include <limits.h> -#include "lapi/abisize.h" - -#ifndef LAPI_FS_H -#define LAPI_FS_H - -#ifndef FS_IOC_GETFLAGS -#define FS_IOC_GETFLAGS _IOR('f', 1, long) -#endif - -#ifndef FS_IOC_SETFLAGS -#define FS_IOC_SETFLAGS _IOW('f', 2, long) -#endif - -#ifndef FS_COMPR_FL -#define FS_COMPR_FL 0x00000004 /* Compress file */ -#endif - -#ifndef FS_IMMUTABLE_FL -#define FS_IMMUTABLE_FL 0x00000010 /* Immutable file */ -#endif - -#ifndef FS_APPEND_FL -#define FS_APPEND_FL 0x00000020 /* writes to file may only append */ -#endif - -#ifndef FS_NODUMP_FL -#define FS_NODUMP_FL 0x00000040 /* do not dump file */ -#endif - -/* - * Helper function to get MAX_LFS_FILESIZE. - * Missing PAGE_SHIFT on some libc prevents defining MAX_LFS_FILESIZE. - * - * 64 bit: macro taken from kernel from include/linux/fs.h - * 32 bit: own implementation - */ -static inline loff_t tst_max_lfs_filesize(void) -{ -#ifdef TST_ABI64 - return (loff_t)LLONG_MAX; -#else - long page_size = getpagesize(); - loff_t ret = ULONG_MAX; - - while (page_size >>= 1) - ret <<= 1; - - return ret; -#endif -} - -#endif |
