[LTP] [RFC PATCH 1/2] LVM: Don't require root for generate_lvm_runfile.sh

Petr Vorel pvorel@suse.cz
Thu May 28 13:56:36 CEST 2020


> On 28. 05. 20 13:05, Petr Vorel wrote:
> > LTPROOT can be in user writable directory. Having rights for make
> > install is user responsibility, it does not have to be guarded by
> > TST_NEEDS_ROOT=1.

> TST_NEEDS_ROOT=1 is there for tst_supported_fs. It won't find any mkfs
> programs if it's not running as root.
Right, thanks for info. Hm, there can be some tests which just want to know
supported filesystems without running them and we have to require root for them.

There could be a solutions (tst_get_supported_fs_types() could have warning
about PATH when user is not root and no mkfs.* found or just changing in
has_mkfs() "mkfs.%s does not exist" to "mkfs.%s does not found" to give more
obvious hint). But it's just a corner case issue, no need to bother with it.

Kind regards,
Petr


More information about the ltp mailing list