Re: [PATCH] common/btrfs: source module file

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



On Thu, Nov 4, 2021 at 8:40 PM Luis Chamberlain <mcgrof@xxxxxxxxxx> wrote:
>
> btrfs/249 fails with:
>
> QA output created by 249
> ./common/btrfs: line 425: _require_loadable_fs_module: command not found
> ./common/btrfs: line 432: _reload_fs_module: command not found
> ERROR: not a btrfs filesystem: /media/scratch
>
> Fix this by sourcing common/module in the btrfs common file.

I'm not sure why you get such a failure. Without the relevant
btrfs-progs and btrfs kernel patches, I don't get that error:

$ ./check btrfs/249
FSTYP         -- btrfs
PLATFORM      -- Linux/x86_64 debian9 5.15.0-rc7-btrfs-next-103 #1 SMP
PREEMPT Tue Nov 2 12:25:45 WET 2021
MKFS_OPTIONS  -- /dev/sdb
MOUNT_OPTIONS -- /dev/sdb /home/fdmanana/btrfs-tests/scratch_1

btrfs/249 [failed, exit status 1]- output mismatch (see
/home/fdmanana/git/hub/xfstests/results//btrfs/249.out.bad)
    --- tests/btrfs/249.out 2021-10-26 11:04:03.879678608 +0100
    +++ /home/fdmanana/git/hub/xfstests/results//btrfs/249.out.bad
2021-11-05 10:51:53.752113924 +0000
    @@ -1,2 +1,5 @@
     QA output created by 249
    -Silence is golden
    +ERROR: unexpected number of devices: 1 >= 1
    +ERROR: if seed device is used, try running this command as root
    +FAILED: btrfs filesystem usage, ret 1. Check btrfs.ko and
btrfs-progs version.
    +(see /home/fdmanana/git/hub/xfstests/results//btrfs/249.full for details)
    ...
    (Run 'diff -u /home/fdmanana/git/hub/xfstests/tests/btrfs/249.out
/home/fdmanana/git/hub/xfstests/results//btrfs/249.out.bad'  to see
the entire diff)
Ran: btrfs/249
Failures: btrfs/249
Failed 1 of 1 tests

Maybe Anand, who authored the test, may have an idea.
We do have many other tests that call
_require_btrfs_forget_or_module_loadable(), btrfs/124, 125, 163, 164,
etc. Does it happen with those as well?

Also, in the future please CC linux-btrfs for changes related to btrfs tests.

Thanks.

>
> Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> ---
>  common/btrfs | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/common/btrfs b/common/btrfs
> index 5d938c19..4dc4f75d 100644
> --- a/common/btrfs
> +++ b/common/btrfs
> @@ -2,6 +2,8 @@
>  # Common btrfs specific functions
>  #
>
> +source common/module
> +
>  _btrfs_get_subvolid()
>  {
>         mnt=$1
> --
> 2.33.0
>


-- 
Filipe David Manana,

“Whether you think you can, or you think you can't — you're right.”




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux