[LTP] [PATCH v1] fsmount01: Add test if MOUNT_ATTR_* have expected effect on the mount
    Li Wang 
    liwang@redhat.com
       
    Fri Aug 29 03:44:38 CEST 2025
    
    
  
On Fri, Aug 29, 2025 at 6:52 AM Wei Gao via ltp <ltp@lists.linux.it> wrote:
> The fsmount01 test does not test if MOUNT_ATTR_* have expected effect
> on the mount, e.g. if MOUNT_ATTR_RDONLY mounts the FS read only etc.
>
> Fixes: #1170
> Signed-off-by: Wei Gao <wegao@suse.com>
> ---
>  include/tst_device.h                          |  1 +
>  lib/tst_device.c                              |  2 +-
>  testcases/kernel/syscalls/fsmount/fsmount01.c | 27 +++++++++++++++++++
>  3 files changed, 29 insertions(+), 1 deletion(-)
>
> diff --git a/include/tst_device.h b/include/tst_device.h
> index e0627a24d..24b5201c5 100644
> --- a/include/tst_device.h
> +++ b/include/tst_device.h
>
> @@ -35,6 +35,7 @@ int tst_umount(const char *path);
>  int tst_is_mounted(const char *path);
>  int tst_is_mounted_ro(const char *path);
>  int tst_is_mounted_rw(const char *path);
>
> +int tst_mount_has_opt(const char *path, const char *opt);
>
Good point, I reordered this to the top above the three mounts and pushed.
Thanks for the enhancement.
-- 
Regards,
Li Wang
    
    
More information about the ltp
mailing list