* [PATCH] xfs/144: Use _qsetup instead of qsetup
@ 2021-04-23 4:23 Yang Xu
2021-04-23 11:13 ` Brian Foster
0 siblings, 1 reply; 2+ messages in thread
From: Yang Xu @ 2021-04-23 4:23 UTC (permalink / raw)
To: fstests; +Cc: Yang Xu
Since xfstests commit 56908a2eb566c5("common/quota: move _qsetup() helper to common code"),
we have common _qsetup function. Even this case doesn't use enforce value like xfs/050 and xfs/299,
using _qsetup is more meaningful. So remove useless qsetup.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
tests/xfs/144 | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
diff --git a/tests/xfs/144 b/tests/xfs/144
index c5995cc5..74988090 100755
--- a/tests/xfs/144
+++ b/tests/xfs/144
@@ -38,25 +38,6 @@ _require_scratch
rm -f $seqres.full
-qsetup()
-{
- opt=$1
- enforce=0
- if [ $opt = "u" -o $opt = "uno" ]; then
- type=u
- eval `_choose_uid`
- elif [ $opt = "g" -o $opt = "gno" ]; then
- type=g
- eval `_choose_gid`
- elif [ $opt = "p" -o $opt = "pno" ]; then
- type=p
- eval `_choose_prid`
- fi
- [ $opt = "u" -o $opt = "g" -o $opt = "p" ] && enforce=1
-
- echo "Using type=$type id=$id" >> $seqres.full
-}
-
exercise() {
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
cat $tmp.mkfs >>$seqres.full
@@ -66,7 +47,7 @@ exercise() {
_qmount
- qsetup $1
+ _qsetup $1
echo "Using type=$type id=$id" >>$seqres.full
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs/144: Use _qsetup instead of qsetup
2021-04-23 4:23 [PATCH] xfs/144: Use _qsetup instead of qsetup Yang Xu
@ 2021-04-23 11:13 ` Brian Foster
0 siblings, 0 replies; 2+ messages in thread
From: Brian Foster @ 2021-04-23 11:13 UTC (permalink / raw)
To: Yang Xu; +Cc: fstests
On Fri, Apr 23, 2021 at 12:23:58PM +0800, Yang Xu wrote:
> Since xfstests commit 56908a2eb566c5("common/quota: move _qsetup() helper to common code"),
> we have common _qsetup function. Even this case doesn't use enforce value like xfs/050 and xfs/299,
> using _qsetup is more meaningful. So remove useless qsetup.
>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
Reviewed-by: Brian Foster <bfoster@redhat.com>
> tests/xfs/144 | 21 +--------------------
> 1 file changed, 1 insertion(+), 20 deletions(-)
>
> diff --git a/tests/xfs/144 b/tests/xfs/144
> index c5995cc5..74988090 100755
> --- a/tests/xfs/144
> +++ b/tests/xfs/144
> @@ -38,25 +38,6 @@ _require_scratch
>
> rm -f $seqres.full
>
> -qsetup()
> -{
> - opt=$1
> - enforce=0
> - if [ $opt = "u" -o $opt = "uno" ]; then
> - type=u
> - eval `_choose_uid`
> - elif [ $opt = "g" -o $opt = "gno" ]; then
> - type=g
> - eval `_choose_gid`
> - elif [ $opt = "p" -o $opt = "pno" ]; then
> - type=p
> - eval `_choose_prid`
> - fi
> - [ $opt = "u" -o $opt = "g" -o $opt = "p" ] && enforce=1
> -
> - echo "Using type=$type id=$id" >> $seqres.full
> -}
> -
> exercise() {
> _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
> cat $tmp.mkfs >>$seqres.full
> @@ -66,7 +47,7 @@ exercise() {
>
> _qmount
>
> - qsetup $1
> + _qsetup $1
>
> echo "Using type=$type id=$id" >>$seqres.full
>
> --
> 2.23.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-23 11:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 4:23 [PATCH] xfs/144: Use _qsetup instead of qsetup Yang Xu
2021-04-23 11:13 ` Brian Foster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).