All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Schmitt" <scdbackup@gmx.net>
To: grub-devel@gnu.org
Cc: development@efficientek.com
Subject: Re: [grub-fs-tester.in] zisofs test looks unsuitable
Date: Thu, 26 Aug 2021 09:34:52 +0200	[thread overview]
Message-ID: <26478360869664256672@scdbackup.webframe.org> (raw)
In-Reply-To: <20210825155923.567a411d@crass-HP-ZBook-15-G2>

Hi,

Glenn Washburn wrote:
> If I'm not mistaken, there is currently no test which actually
> exercises that code, ie no test runs "grub-fs-tester ziso9660". I think
> it could be a good idea to have one though.

So we should get this to work. zisofs can be helpful to squeeze more
operating system into a size limited ISO image.


> However, when attempting to run the test manually, I'm getting a
> failure probably related to what you've found.
> $ ./grub-fs-tester ziso9660
> [...]
> xorriso : FAILURE : -volid: Text too long (1650 > 32)

This is something different.
"-volid" is the native xorriso command that's behind mkisofs emulation
option -V. In
  https://git.savannah.gnu.org/cgit/grub.git/tree/tests/util/grub-fs-tester.in#n1024
i see

  -V "$FSLABEL"

which is also used with the case x"iso9660").

So i assume that it is not curbed to 32 bytes by the code after line 315

  # FS LIMITATION: afs and iso9660 label is at most 32 UTF-8 characters

It seems that line 317 should be extended by a new line 318

-                     | xiso9660_1999 | xrockridge_1999 | xrockridge_joliet_1999)
+                     | xiso9660_1999 | xrockridge_1999 | xrockridge_joliet_1999\
+                     | xziso9660)

Nitpicking:
The comment speaks of "32 UTF-8 characters" but it must be at most 32 bytes.
(Wisely the code does not truncate the long UTF-8 string but rather creates
a new string, which seems to have 31 bytes. I'm unsure whether my desktop
properly copies and pastes those [02F 99x] characters from line 318.)


Have a nice day :)

Thomas



  reply	other threads:[~2021-08-26  7:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25 10:29 [grub-fs-tester.in] zisofs test looks unsuitable Thomas Schmitt
2021-08-25 20:59 ` Glenn Washburn
2021-08-26  7:34   ` Thomas Schmitt [this message]
2021-08-26 20:07     ` Thomas Schmitt
2021-08-26 21:18       ` Glenn Washburn
2021-08-26 22:14         ` Thomas Schmitt
2021-08-27  3:30           ` Glenn Washburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26478360869664256672@scdbackup.webframe.org \
    --to=scdbackup@gmx.net \
    --cc=development@efficientek.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.