Re: [PATCH 12/24] overlay/020: make sure the system supports the required namespaces

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

 



On Tue, Sep 15, 2020 at 4:44 AM Darrick J. Wong <darrick.wong@xxxxxxxxxx> wrote:
>
> From: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
>
> Don't run this test if the kernel doesn't support namespaces.
>
> Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> ---

Reviewed-by: Amir Goldstein <amir73il@xxxxxxxxx>

>  tests/overlay/020 |    6 ++++++
>  1 file changed, 6 insertions(+)
>
>
> diff --git a/tests/overlay/020 b/tests/overlay/020
> index 85488b83..9029f042 100755
> --- a/tests/overlay/020
> +++ b/tests/overlay/020
> @@ -32,10 +32,16 @@ rm -f $seqres.full
>
>  # real QA test starts here
>
> +require_unshare() {
> +       unshare -f -r "$@" true &>/dev/null || \
> +               _notrun "unshare $@: not supported"
> +}
> +

I guess we can defer making this common until xfstests catches up on
testing FS_USERNS_MOUNT...

Thanks,
Amir.



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux