Skip to content
Snippets Groups Projects
Commit 9db257dc authored by Marcin Ślusarz's avatar Marcin Ślusarz
Browse files

test: disable prefault tests on xfs

ctl_prefault test verifies that the functionality of prefaulting works
by using indirect information, which for xfs returns incorrect information.
There's nothing file system-specific in the way prefaulting works,
so verifying it works only on one file system (ext4) is enough.
parent 55fd2f4a
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,6 @@
#include <linux/magic.h>
#include <sys/vfs.h>
#ifndef XFS_SUPER_MAGIC
#define XFS_SUPER_MAGIC 0x58465342
#endif
/*
* posix_fallocate on Linux is implemented using fallocate
* syscall. This syscall requires file system-specific code on
......@@ -79,8 +75,7 @@ check_fallocate(const char *file)
struct statfs fs;
if (!fstatfs(fd, &fs)) {
if (fs.f_type != EXT4_SUPER_MAGIC && /* also ext2, ext3 */
fs.f_type != XFS_SUPER_MAGIC) {
if (fs.f_type != EXT4_SUPER_MAGIC /* also ext2, ext3 */) {
/*
* On CoW filesystems, fallocate reserves _amount
* of_ space but doesn't allocate a specific block.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment