On Thu, Apr 23, 2020 at 5:10 AM Anatoly Pugachev <mator...@gmail.com> wrote:
>
> On Tue, Jul 30, 2019 at 3:10 PM Anatoly Pugachev <mator...@gmail.com> wrote:
> >
> > On Tue, Jul 30, 2019 at 1:00 PM John Paul Adrian Glaubitz
> > <glaub...@physik.fu-berlin.de> wrote:
> > > On 7/30/19 10:11 AM, Anatoly Pugachev wrote:
> > > > don't run f2fs test on systems with PAGE_SIZE > 4096 bytes.
> > > > Since f2fs is not supported on this systems (can't mount f2fs 
> > > > filesystem).
> > >
> > > Some spelling fixes and re-phrasing suggestion:
> > >
> > > > Don't run f2fs tests on systems with PAGE_SIZE > 4096 bytes since f2fs
> > > > is not supported on these systems and mounting a f2fs filesystems fails.
> > >
> > > And:
> > >
> > > +PAGE_SIZE=$(getconf PAGE_SIZE)
> > > +F2FS_BLKSIZE=4096
> > > +if [ $PAGE_SIZE > $F2FS_BLKSIZE ]; then

This code does not do what you think it does. It runs the command "[
$PAGE_SIZE" and pipes the output to a file called "4096". The
resulting status will always be 0 (success).

You probably want to use "-gt" in place of ">".

if [ $PAGE_SIZE -gt $F2FS_BLKSIZE ]; then
...

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to