/third_party/ltp/testcases/kernel/mem/hugetlb/hugefallocate/ |
H A D | hugefallocate01.c | 10 * It tests alignment of fallocate arguments. fallocate will take non-huge 12 * performed on huge pages. This is different that than fallocate 24 #include "lapi/fallocate.h" 44 err = fallocate(fd, 0, 0, 1); in run_test() 48 tst_res(TFAIL|TERRNO, "fallocate()"); in run_test() 54 tst_res(TFAIL, "fallocate 1 byte did not preallocate entire huge page"); in run_test() 62 err = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in run_test() 65 tst_res(TFAIL|TERRNO, "fallocate(FALLOC_FL_PUNCH_HOLE)"); in run_test() 71 tst_res(TFAIL, "fallocate hol in run_test() [all...] |
H A D | hugefallocate02.c | 10 * It tests basic fallocate functionality in hugetlbfs. Preallocate huge 22 #include "lapi/fallocate.h" 42 err = fallocate(fd, 0, 0, hpage_size * max_iterations); in run_test() 45 tst_brk(TCONF, "fallocate() Operation is not supported"); in run_test() 46 tst_res(TFAIL|TERRNO, "fallocate()"); in run_test() 52 tst_res(TFAIL, "fallocate did not preallocate %lu huge pages", in run_test() 58 err = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in run_test() 61 tst_res(TFAIL|TERRNO, "fallocate(FALLOC_FL_PUNCH_HOLE)"); in run_test()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | fallocate.c | 36 int ret = fallocate(fd, 0, 4096, 4096 * 3); in fallocate_0100() 55 int ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 4096, 4096 * 3); in fallocate_0200() 75 int ret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 4096, 4096 * 3); in fallocate_0300() 89 int ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 4096, 4096 * 3); in fallocate_0400()
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
H A D | fallocate04.c | 20 #include "lapi/fallocate.h" 26 #define MNTPOINT "fallocate" 27 #define FNAME MNTPOINT "/fallocate.txt" 84 if (fallocate(fd, 0, 0, buf_size) == -1) { in test01() 86 tst_brk(TCONF, "fallocate() not supported"); in test01() 87 tst_brk(TFAIL | TERRNO, "fallocate() failed"); in test01() 106 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in test02() 112 tst_brk(TFAIL | TERRNO, "fallocate() failed"); in test02() 122 "fallocate() or lseek() failed"); in test02() 160 if (fallocate(f in test03() [all...] |
H A D | fallocate05.c | 10 * - fallocate() some empty blocks 13 * - try to fallocate() more blocks until we get ENOSPC 26 #include "lapi/fallocate.h" 31 #define TESTED_FLAGS "fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)" 45 * Use real FS block size, otherwise fallocate() call will test in setup() 62 TEST(fallocate(fd, 0, 0, bufsize)); in run() 66 tst_brk(TCONF | TTERRNO, "fallocate() not supported"); in run() 68 tst_brk(TBROK | TTERRNO, "fallocate(fd, 0, 0, %ld)", bufsize); in run() 88 TEST(fallocate(fd, 0, bufsize + extsize, blocksize)); in run() 91 tst_res(TFAIL, "Invalid fallocate() retur in run() [all...] |
H A D | fallocate06.c | 9 * Tests misaligned fallocate() 14 * 2. fallocate() some more space (not aligned to FS blocks) 42 #include "lapi/fallocate.h" 49 #define TESTED_FLAGS "fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)" 192 TEST(fallocate(fd, 0, offset, size)); in run() 198 tst_brk(TCONF | TTERRNO, "fallocate() not supported"); in run() 200 tst_brk(TBROK | TTERRNO, "fallocate(fd, 0, %ld, %ld)", offset, in run() 215 TEST(fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, offset, in run() 226 /* Validate that fallocate() cleared the correct file range */ in run()
|
H A D | fallocate03.c | 32 * TEST TITLE : fallocate 45 * (Working of fallocate on a sparse file) 50 * fallocate() in-puts are specified through test_data 63 * This is a test case for fallocate() system call. 64 * This test suite tests working of fallocate on sparse file 65 * fallocate is tested for different offsets 71 * Setup file on which fallocate is to be called 100 #include "lapi/fallocate.h" 241 TEST(fallocate in main() 251 "fallocate syste in main() [all...] |
H A D | fallocate02.c | 24 * check fallocate() with various error conditions that should produce 43 #include "lapi/fallocate.h" 132 TEST(fallocate(*test_data[i].fd, test_data[i].mode, in fallocate_verify() 139 "fallocate system call is not implemented"); in fallocate_verify() 142 "fallocate(%s:%d, %d, %" PRId64 ", %" PRId64 ") " in fallocate_verify() 149 "fallocate(%s:%d, %d, %" PRId64 ", %" PRId64 ") " in fallocate_verify()
|
H A D | fallocate01.c | 32 * TEST TITLE : Basic test for fallocate() 45 * (Working of fallocate under 2 modes) 50 * fallocate() in puts are generated randomly 63 * This is a test case for fallocate() system call. 64 * This test suite tests basic working of fallocate under different modes 65 * It trys to fallocate memory blocks and write into that block 72 * Setup file on which fallocate is to be called 103 #include "lapi/fallocate.h" 227 TEST(fallocate(fd, mode, offset, len)); in runtest() 232 "fallocate syste in runtest() [all...] |
/third_party/musl/src/linux/ |
H A D | fallocate.c | 5 int fallocate(int fd, int mode, off_t base, off_t len) in fallocate() function 12 weak_alias(fallocate, fallocate64);
|
/third_party/rust/crates/rustix/tests/fs/ |
H A D | invalid_offset.rs | 45 use rustix::fs::{cwd, fallocate, openat, FallocateFlags, Mode, OFlags}; in invalid_offset_fallocate() 56 fallocate(&file, FallocateFlags::empty(), u64::MAX, 1).unwrap_err(); in invalid_offset_fallocate() 57 fallocate(&file, FallocateFlags::empty(), i64::MAX as u64 + 1, 1).unwrap_err(); in invalid_offset_fallocate() 58 fallocate(&file, FallocateFlags::empty(), 0, u64::MAX).unwrap_err(); in invalid_offset_fallocate() 59 fallocate(&file, FallocateFlags::empty(), 0, i64::MAX as u64 + 1).unwrap_err(); in invalid_offset_fallocate()
|
/third_party/musl/porting/linux/user/include/ |
H A D | fcntl.h | 187 int fallocate(int, int, off_t, off_t); 188 #define fallocate64 fallocate
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | fcntl.h | 186 int fallocate(int, int, off_t, off_t); 187 #define fallocate64 fallocate
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | fcntl.h | 186 int fallocate(int, int, off_t, off_t); 187 #define fallocate64 fallocate
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | fcntl.h | 186 int fallocate(int, int, off_t, off_t); 187 #define fallocate64 fallocate
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | fcntl.h | 186 int fallocate(int, int, off_t, off_t); 187 #define fallocate64 fallocate
|
/third_party/musl/include/ |
H A D | fcntl.h | 189 int fallocate(int, int, off_t, off_t); 190 #define fallocate64 fallocate
|
/third_party/ltp/include/lapi/ |
H A D | fallocate.h | 39 static inline long fallocate(int fd, int mode, loff_t offset, loff_t len) in fallocate() function
|
/third_party/rust/crates/rustix/src/fs/ |
H A D | fd.rs | 223 /// `fallocate(fd, mode, offset, len)`—Adjusts file allocation. 232 /// - [Linux `fallocate`] 236 /// [Linux `fallocate`]: https://man7.org/linux/man-pages/man2/fallocate.2.html 249 pub fn fallocate<Fd: AsFd>(fd: Fd, mode: FallocateFlags, offset: u64, len: u64) -> io::Result<()> { in fallocate() functions 250 backend::fs::syscalls::fallocate(fd.as_fd(), mode, offset, len) in fallocate()
|
/third_party/ltp/lib/ |
H A D | tst_fill_file.c | 29 #include "lapi/fallocate.h" 64 ret = fallocate(fd, 0, 0, bs * bcount); in tst_prealloc_size_fd()
|
/third_party/f2fs-tools/mkfs/ |
H A D | f2fs_format_utils.c | 80 if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, in trim_device() 82 MSG(0, "Info: fallocate(PUNCH_HOLE|KEEP_SIZE) is failed\n"); in trim_device()
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | fcntl.h | 182 int fallocate(int, int, off_t, off_t);
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
H A D | mremap06.c | 105 ret = fallocate(fd, 0, 0, mmap_size); in setup() 107 tst_brk(TBROK, "fallocate() failed"); in setup()
|
/third_party/NuttX/fs/vfs/include/ |
H A D | file.h | 144 int (*fallocate)(struct file* filep, int mode, off_t offset, off_t len); member
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
H A D | memfd_create_common.c | 19 #include "lapi/fallocate.h" 37 r = fallocate(fd, mode, offset, len); in check_fallocate() 40 "fallocate(%d, %d, %ld, %ld) failed", fd, mode, in check_fallocate() 45 "fallocate(%d, %d, %ld, %ld) succeeded", fd, mode, in check_fallocate() 56 r = fallocate(fd, mode, offset, len); in check_fallocate_fail() 59 "fallocate(%d, %d, %ld, %ld) succeeded unexpectedly", in check_fallocate_fail() 66 "fallocate(%d, %d, %ld, %ld) failed as expected", fd, in check_fallocate_fail()
|