From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: "Andrea Cervesato" <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1 1/1] swap: Add exfat to filesystems requiring tst_fill_file
Date: Wed, 17 Jun 2026 14:59:15 +0000 [thread overview]
Message-ID: <6a32b644.f32a6769.150c63.1270@mx.google.com> (raw)
In-Reply-To: <6a32a771.5e46ca1c.2772d7.360b@mx.google.com>
An update. I had to go through the code to understand if we are having
issues from our side. Indeed, there's a commit which is responsible for
this exfat behaviour and it's causing a regression-like issue:
bf1797960c20 - exfat: add fallocate FALLOC_FL_ALLOCATE_RANGE support
tst_prealloc_size_fd() is called by make_swapfile() which is called by our
swapon/swapoff testing suites. Inside it we use fallocate() that is now
supported by exfat and returns 0 after the kernel patch.
This naturally falls down into the next:
/* Fill the file if needed (specific to old xfs filesystems) */
if (tst_fs_type(swapfile) == TST_XFS_MAGIC) {
if (tst_fill_file(swapfile, 0, blk_size, blocks) != 0)
tst_brk_(file, lineno, TBROK, "Failed to fill swapfile");
}
but there's no data written and we get EINVAL at the end of the tests
because swapon() is using a file created with fallocate() instead.
The Jan assumption is correct and the patch as well, but it's strange
we can't reproduce it. The EINVAL is the expected behaviour in this case.
I'm just wondering how to implement it better.
First of all, we should mention the commit that introduced fallocate()
support into exfat inside the patch commit message.
Secondly, since the code was already working before v7.1, maybe we should
fill the file in exfat only for kernel >= 7.1. But I don't want to touch
the core library.
@Cyril WDYT?
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-06-17 14:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 15:52 [LTP] [PATCH v1 1/1] swap: Add exfat to filesystems requiring tst_fill_file Jan Polensky
2026-06-08 16:29 ` [LTP] " linuxtestproject.agent
2026-06-09 9:19 ` [LTP] [PATCH v1 1/1] " Cyril Hrubis
2026-06-09 14:17 ` Jan Polensky
2026-06-12 9:06 ` Andrea Cervesato via ltp
2026-06-12 9:07 ` Cyril Hrubis
2026-06-17 13:56 ` Andrea Cervesato via ltp
2026-06-17 14:59 ` Andrea Cervesato via ltp [this message]
2026-06-17 15:19 ` Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a32b644.f32a6769.150c63.1270@mx.google.com \
--to=ltp@lists.linux.it \
--cc=andrea.cervesato@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.