public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/082: rename _filter_project_quota to a avoid function name conflict
@ 2016-06-29  1:33 Theodore Ts'o
  2016-06-29  6:11 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Theodore Ts'o @ 2016-06-29  1:33 UTC (permalink / raw)
  To: fstests; +Cc: Theodore Ts'o

Commit 8469a8c1: "xfs/133-4: filter redundant projid 0 quota report
info out" added _filter_project_quota to common/filter, and this
conflicted with a _filter_project_quota function in generic/082.  So
rename the function in generic/082 to avoid the conflict.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 tests/generic/082 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/generic/082 b/tests/generic/082
index a727c10..fa61ba9 100755
--- a/tests/generic/082
+++ b/tests/generic/082
@@ -36,9 +36,9 @@ _cleanup()
 	rm -f $tmp.*
 }
 
-_filter_project_quota()
+_filter_project_quota_line()
 {
-    grep -v "^project quota on"
+	grep -v "^project quota on"
 }
 
 # get standard environment, filters and checks
@@ -69,7 +69,7 @@ quotaon $SCRATCH_MNT >>$seqres.full 2>&1
 # just ignored, but quota is still on. This may change in future, let's
 # re-consider the case then.
 _scratch_mount "-o remount,ro,nosuchopt" >>$seqres.full 2>&1
-quotaon -p $SCRATCH_MNT | _filter_scratch | _filter_project_quota
+quotaon -p $SCRATCH_MNT | _filter_scratch | _filter_project_quota_line
 # second remount should succeed, no oops or hang expected
 _scratch_mount "-o remount,ro" || _fail "second remount,ro failed"
 
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] generic/082: rename _filter_project_quota to a avoid function name conflict
  2016-06-29  1:33 [PATCH] generic/082: rename _filter_project_quota to a avoid function name conflict Theodore Ts'o
@ 2016-06-29  6:11 ` Dave Chinner
  2016-06-29 13:16   ` Theodore Ts'o
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2016-06-29  6:11 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: fstests

On Tue, Jun 28, 2016 at 09:33:07PM -0400, Theodore Ts'o wrote:
> Commit 8469a8c1: "xfs/133-4: filter redundant projid 0 quota report
> info out" added _filter_project_quota to common/filter, and this
> conflicted with a _filter_project_quota function in generic/082.  So
> rename the function in generic/082 to avoid the conflict.
> 
> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> ---
>  tests/generic/082 | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/generic/082 b/tests/generic/082
> index a727c10..fa61ba9 100755
> --- a/tests/generic/082
> +++ b/tests/generic/082
> @@ -36,9 +36,9 @@ _cleanup()
>  	rm -f $tmp.*
>  }
>  
> -_filter_project_quota()
> +_filter_project_quota_line()
>  {
> -    grep -v "^project quota on"
> +	grep -v "^project quota on"
>  }

Functions starting with "_" denote common scope functions (i.e.
from externally sourced files), not local test functions. Just
remove the "_" prefix here....

Cheers,

Dave.

-- 
Dave Chinner
david@fromorbit.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] generic/082: rename _filter_project_quota to a avoid function name conflict
  2016-06-29  6:11 ` Dave Chinner
@ 2016-06-29 13:16   ` Theodore Ts'o
  0 siblings, 0 replies; 3+ messages in thread
From: Theodore Ts'o @ 2016-06-29 13:16 UTC (permalink / raw)
  To: Dave Chinner; +Cc: fstests

On Wed, Jun 29, 2016 at 04:11:09PM +1000, Dave Chinner wrote:
> Functions starting with "_" denote common scope functions (i.e.
> from externally sourced files), not local test functions. Just
> remove the "_" prefix here....

Thanks, I wasn't aware of that convention when I first introduced
_filter_project_quota to generic/082.  New patch coming up...

		      	 	       	   - Ted

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-29 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-29  1:33 [PATCH] generic/082: rename _filter_project_quota to a avoid function name conflict Theodore Ts'o
2016-06-29  6:11 ` Dave Chinner
2016-06-29 13:16   ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox