GNU bug report logs -
#27143
file-systems: Improve error reporting for ISO9660
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27143 in the body.
You can then email your comments to 27143 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#27143
; Package
guix-patches
.
(Tue, 30 May 2017 09:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 30 May 2017 09:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/build/file-systems.scm (read-iso9660-primary-volume-descriptor):
Improve error reporting.
---
gnu/build/file-systems.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
index 17c1182ce..bd6997adc 100644
--- a/gnu/build/file-systems.scm
+++ b/gnu/build/file-systems.scm
@@ -245,7 +245,10 @@ Trailing spaces are trimmed."
"Find and read the first primary volume descriptor, starting at OFFSET.
Return #f if not found."
(let* ((sblock (read-superblock device offset 2048 iso9660-superblock?))
- (type-code (if sblock (array-ref sblock 0) 255)))
+ (type-code (if sblock
+ (array-ref sblock 0)
+ (error (format #f "Could not read ISO9660 primary
+volume descriptor from ~s" device)))))
(match type-code
(255 #f) ; Volume Descriptor Set Terminator.
(1 sblock) ; Primary Volume Descriptor
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27143
; Package
guix-patches
.
(Wed, 31 May 2017 15:17:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 27143 <at> debbugs.gnu.org (full text, mbox):
Hi Danny,
The prefix for the subject line should just be “file-systems:”.
Danny Milosavljevic <dannym <at> scratchpost.org> skribis:
> * gnu/build/file-systems.scm (read-iso9660-primary-volume-descriptor):
> Improve error reporting.
[...]
> Return #f if not found."
> (let* ((sblock (read-superblock device offset 2048 iso9660-superblock?))
> - (type-code (if sblock (array-ref sblock 0) 255)))
> + (type-code (if sblock
> + (array-ref sblock 0)
> + (error (format #f "Could not read ISO9660 primary
> +volume descriptor from ~s" device)))))
‘format’ misses an argument.
I hadn’t noticed earlier, but we should use:
(bytevector-u8-ref sblock 0)
instead of ‘array-ref’ (the array API is not appropriate in this
context; in fact it’s rarely appropriate :-)).
Also make sure to indent the ‘if’ arms properly.
OK with these changes, thanks!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27143
; Package
guix-patches
.
(Wed, 31 May 2017 18:25:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 27143 <at> debbugs.gnu.org (full text, mbox):
Hi Ludo,
On Wed, 31 May 2017 17:16:07 +0200
ludo <at> gnu.org (Ludovic Courtès) wrote:
> The prefix for the subject line should just be “file-systems:”.
OK
> Danny Milosavljevic <dannym <at> scratchpost.org> skribis:
>
> > + (error (format #f "Could not read ISO9660 primary
> > +volume descriptor from ~s" device)))))
>
> ‘format’ misses an argument.
Uh? Which one does it miss?
> I hadn’t noticed earlier, but we should use:
>
> (bytevector-u8-ref sblock 0)
OK!
> Also make sure to indent the ‘if’ arms properly.
OK!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27143
; Package
guix-patches
.
(Wed, 31 May 2017 20:42:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 27143 <at> debbugs.gnu.org (full text, mbox):
Hi Danny,
Danny Milosavljevic <dannym <at> scratchpost.org> skribis:
> On Wed, 31 May 2017 17:16:07 +0200
> ludo <at> gnu.org (Ludovic Courtès) wrote:
>
>> The prefix for the subject line should just be “file-systems:”.
>
> OK
>
>> Danny Milosavljevic <dannym <at> scratchpost.org> skribis:
>>
>> > + (error (format #f "Could not read ISO9660 primary
>> > +volume descriptor from ~s" device)))))
>>
>> ‘format’ misses an argument.
>
> Uh? Which one does it miss?
Oh sorry, I guess I didn’t have my glasses on.
Ludo’.
Changed bug title to 'file-systems: Improve error reporting for ISO8660' from '[PATCH] gnu: build: Improve error reporting.'
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Sat, 03 Jun 2017 14:15:02 GMT)
Full text and
rfc822 format available.
Changed bug title to 'file-systems: Improve error reporting for ISO9660' from 'file-systems: Improve error reporting for ISO8660'
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Sat, 03 Jun 2017 14:15:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Sat, 03 Jun 2017 14:15:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
bug acknowledged by developer.
(Sat, 03 Jun 2017 14:15:03 GMT)
Full text and
rfc822 format available.
Message #23 received at 27143-done <at> debbugs.gnu.org (full text, mbox):
This was pushed as 203a9455c4695152fc5d0085bffeead9ce3216c2, so closing it.
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 02 Jul 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 293 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.