Re: [PATCH 2/2] test: mke2fs must not create fs with reszie_inode and meta_bg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 13, 2018 at 03:17:06PM +0200, Lukas Czerner wrote:
> Test that mke2fs does not allow to create file system with both
> resize_inode and meta_bg features enabled.
> 

> diff --git a/tests/m_resize_inode_meta_bg/script b/tests/m_resize_inode_meta_bg/script
> new file mode 100644
> index 00000000..41ffb32a
> --- /dev/null
> +++ b/tests/m_resize_inode_meta_bg/script
> @@ -0,0 +1,7 @@
> +DESCRIPTION="resize_inode and meta_bg enabled"
> +FS_SIZE=15360
> +MKE2FS_DEVICE_SECTSIZE=4096
> +export MKE2FS_DEVICE_SECTSIZE
> +MKE2FS_OPTS="-T ext4 -g256 -O 64bit"
> +. $cmd_dir/run_mke2fs
> +unset MKE2FS_DEVICE_SECTSIZE

This doesn't look right --- in order to trigger the bug the file
system size has to be exactly 2**32, right?  And if so, then we need
to add:

if [ $(uname -s) = "Darwin" ]; then
       # creates a really big filesystem
       echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
       return 0
fi

right?

Hmm, Andreas, these checks were mostly for you IIRC.  APFS *does*
support sparse files, so I wonder if we should be using an autoconf
test to see if the system supports sparse files, and using this to set
a variable in test_config (which would have to be generated from
test_config.in)?  I don't plan to do anything like this since I don't
have a development MacOS system, but if you do run High Sierra, maybe
you could look in this?

						- Ted



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux