[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YdX5csi2qZjS1KOt@mit.edu>
Date: Wed, 5 Jan 2022 15:02:58 -0500
From: "Theodore Ts'o" <tytso@....edu>
To: guan@...u.me, fstests@...r.kernel.org,
Ext4 Developers List <linux-ext4@...r.kernel.org>,
Eric Whitney <enwlinux@...il.com>
Subject: Re: [PATCH] ext4/033: test EXT4_IOC_RESIZE_FS by calling the ioctl
directly
On Thu, Jan 06, 2022 at 12:06:19AM +0800, Zorro Lang wrote:
> > This patch looks good to me, I just want to ask if we'd better to try to include
> > ext2fs/ext2fs.h at here? And of course, check it in configure.ac.
> > The EXT4_IOC_RESIZE_FS looks like defined in ext2fs/ext2_fs.h which comes from
> > e2fsprogs-devel package. I can't find this definition from kernel-hearders package.
> > As you're the expert of this part, please correct me if it's wrong :)
We're not depending on ext2fs/ext2_fs.h and hence the e2fsprogs-devel
(or libext2fs-dev package if you're using Debian/Ubuntu) anywhere else
in the xfstests-dev. It's not like the code points for
EXT4_IOC_RESIZE_FS are going to change, so we just use constructs
like:
#ifndef EXT4_IOC_RESIZE_FS
#define EXT4_IOC_RESIZE_FS _IOW('f', 16, __u64)
#endif
in xfstests-dev/src/*.c as needed.
There's no real upside in adding a dependency which makes it harder
for developers to compile xfstests. (Trivia note: I created
xfstests-bld several years ago because back then, Debian didn't
include some of the internal header files from xfsprogs which xfstests
needed.)
Cheers,
- Ted
Powered by blists - more mailing lists