[LTP] [PATCH v2 1/4] shell: Add tst_mount() helper

Cyril Hrubis chrubis@suse.cz
Thu Mar 14 12:15:15 CET 2019


Hi!
> +Mounting and unmounting filesystems
> ++++++++++++++++++++++++++++++++++++
> +
> +The 'tst_mount' and 'tst_umount' helpers are a safe way to mount/umount a filesystem.
>  
> -The 'tst_umount' helper is a safe way to umount a filesystem.
> +The 'tst_mount' mounts '$TST_DEVICE' of '$TST_FS_TYPE' (optional) to '$TST_MNTPOINT',
> +using optional '$TST_MNT_PARAMS'. It creates before mounting the '$TST_MNTPOINT'
> +directory if not exists and fails if mounting was unsuccessful.

The last nit is this piece of docummentation.

- The last sentence is missing subject, generally the sentence does not
  make much sense
- We should document that TST_MNTPOINT defaults to mntpoint

So it should be something as:

The 'tst_mount' mounts '$TST_DEVICE' of '$TST_FS_TYPE' (optional) to
'$TST_MNTPOINT' (defaults to mntpoint), optionally using the
'$TST_MNT_PARAMS'. The '$TST_MNTPOINT' directory is created if it didn't
exist prior to the function call.


Otherwise it all looks fine, acked with a change to this docs.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list