* [PATCH] casefold: Fix expansion of seqres variable
@ 2022-05-11 0:25 Gabriel Krisman Bertazi
2022-05-11 4:55 ` Dave Chinner
0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Krisman Bertazi @ 2022-05-11 0:25 UTC (permalink / raw)
To: zlang; +Cc: fstests, Gabriel Krisman Bertazi
seqres is not properly expanded on these error paths, causing a file
called seqres.full to be created instead.
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
---
common/casefold | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/casefold b/common/casefold
index 9172d818125a..7e8f941211db 100644
--- a/common/casefold
+++ b/common/casefold
@@ -25,7 +25,7 @@ _require_scratch_casefold()
_notrun "$FSTYP does not support casefold feature"
fi
- if ! _scratch_mkfs_casefold &>>seqres.full; then
+ if ! _scratch_mkfs_casefold &>>$seqres.full; then
_notrun "$FSTYP userspace tools do not support casefold"
fi
@@ -33,7 +33,7 @@ _require_scratch_casefold()
# defined by the userspace tools. This will fail if
# the userspace tool used a more recent encoding than the one
# supported in kernel space.
- if ! _try_scratch_mount &>>seqres.full; then
+ if ! _try_scratch_mount &>>$seqres.full; then
_notrun "kernel can't mount filesystem with the encoding set by userspace"
fi
_scratch_unmount
--
2.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] casefold: Fix expansion of seqres variable
2022-05-11 0:25 [PATCH] casefold: Fix expansion of seqres variable Gabriel Krisman Bertazi
@ 2022-05-11 4:55 ` Dave Chinner
2022-05-11 9:26 ` Zorro Lang
0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2022-05-11 4:55 UTC (permalink / raw)
To: Gabriel Krisman Bertazi; +Cc: zlang, fstests
On Tue, May 10, 2022 at 08:25:20PM -0400, Gabriel Krisman Bertazi wrote:
> seqres is not properly expanded on these error paths, causing a file
> called seqres.full to be created instead.
>
> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
> ---
> common/casefold | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/common/casefold b/common/casefold
> index 9172d818125a..7e8f941211db 100644
> --- a/common/casefold
> +++ b/common/casefold
> @@ -25,7 +25,7 @@ _require_scratch_casefold()
> _notrun "$FSTYP does not support casefold feature"
> fi
>
> - if ! _scratch_mkfs_casefold &>>seqres.full; then
> + if ! _scratch_mkfs_casefold &>>$seqres.full; then
PLease add a space between the &>> and $seqres.full while you are
fixing this. It's unreadable without proper whitespace separation...
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] casefold: Fix expansion of seqres variable
2022-05-11 4:55 ` Dave Chinner
@ 2022-05-11 9:26 ` Zorro Lang
0 siblings, 0 replies; 3+ messages in thread
From: Zorro Lang @ 2022-05-11 9:26 UTC (permalink / raw)
To: Gabriel Krisman Bertazi; +Cc: fstests
On Wed, May 11, 2022 at 02:55:37PM +1000, Dave Chinner wrote:
> On Tue, May 10, 2022 at 08:25:20PM -0400, Gabriel Krisman Bertazi wrote:
> > seqres is not properly expanded on these error paths, causing a file
> > called seqres.full to be created instead.
> >
> > Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
> > ---
> > common/casefold | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/common/casefold b/common/casefold
> > index 9172d818125a..7e8f941211db 100644
> > --- a/common/casefold
> > +++ b/common/casefold
> > @@ -25,7 +25,7 @@ _require_scratch_casefold()
> > _notrun "$FSTYP does not support casefold feature"
> > fi
> >
> > - if ! _scratch_mkfs_casefold &>>seqres.full; then
> > + if ! _scratch_mkfs_casefold &>>$seqres.full; then
By running `grep -rsn seqres|grep -v \$seqres`, I think this's only one file
we missed '$' for 'seqres'. So this fix is good to me. And...
>
> PLease add a space between the &>> and $seqres.full while you are
> fixing this. It's unreadable without proper whitespace separation...
I'll merge your V2 patch, after you change it as Dave suggested above.
Thanks,
Zorro
>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@fromorbit.com
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-11 9:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 0:25 [PATCH] casefold: Fix expansion of seqres variable Gabriel Krisman Bertazi
2022-05-11 4:55 ` Dave Chinner
2022-05-11 9:26 ` Zorro Lang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.