Your message dated Thu, 01 May 2025 19:34:10 +0000
with message-id <[email protected]>
and subject line Bug#1104465: fixed in fuseiso 20070708-7
has caused the Debian Bug report #1104465,
regarding fuseiso: Incorrect block count reported [bugfix]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1104465: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104465
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fuseiso
Version: 20070708-6

Hi

fuseiso reports the wrong size for standard ISOs - it considers the sectors to
be blocks. This means everything gets shrunk by a factor of 4 on an ISO9660
image, which has 2048 byte sectors.

Looks like there's no upstream maintainer, so I've attached:

* a one-liner fix
* test data creation script
* test script
* logs of output
* diff of before and after

Thanks

Gareth
(💻) gaz@blade:~/src/tmp/fuseiso$ diff sysmount.log fuseiso.log
1,3c1,3
< 1.0M  medium.bin
< 512   small.txt
< 6.5K  unaligned.txt
---
> 256K  medium.bin
> 0     small.txt
> 1.5K  unaligned.txt
5,6c5,6
<   Size: 1048576       Blocks: 2048       IO Block: 2048   regular file
< Device: 7,30  Inode: 1799        Links: 1
---
>   Size: 1048576       Blocks: 512        IO Block: 2048   regular file
> Device: 0,142 Inode: 4           Links: 1
13,14c13,14
<   Size: 12            Blocks: 1          IO Block: 2048   regular file
< Device: 7,30  Inode: 1803        Links: 1
---
>   Size: 12            Blocks: 0          IO Block: 2048   regular file
> Device: 0,142 Inode: 5           Links: 1
21,22c21,22
<   Size: 6387          Blocks: 13         IO Block: 2048   regular file
< Device: 7,30  Inode: 1807        Links: 1
---
>   Size: 6387          Blocks: 3          IO Block: 2048   regular file
> Device: 0,142 Inode: 6           Links: 1
(💻) gaz@blade:~/src/tmp/fuseiso$ diff sysmount.log patched.log
6c6
< Device: 7,30  Inode: 1799        Links: 1
---
> Device: 0,142 Inode: 4           Links: 1
14c14
< Device: 7,30  Inode: 1803        Links: 1
---
> Device: 0,142 Inode: 5           Links: 1
22c22
< Device: 7,30  Inode: 1807        Links: 1
---
> Device: 0,142 Inode: 6           Links: 1

Attachment: patched.log
Description: Binary data

Attachment: fuseiso.log
Description: Binary data

Attachment: create_testdata.sh
Description: Bourne shell script

Attachment: sysmount.log
Description: Binary data

Attachment: test.sh
Description: Bourne shell script

diff --git a/src/isofs.c b/src/isofs.c
index 64b1e92..d53139c 100644
--- a/src/isofs.c
+++ b/src/isofs.c
@@ -539,7 +539,7 @@ static int isofs_direntry2stat(struct stat *st, isofs_inode *inode) {
         st->st_size = isonum_733(record->size);
     };
     
-    st->st_blocks = st->st_size / context.data_size; // should not be to meaningful even for zisofs compression
+    st->st_blocks = (st->st_size + 511) >> 9; // divide by 512 with ceil
     st->st_blksize = context.data_size;
     st->st_nlink = 1; // always, even if rrip PX entry found
     

--- End Message ---
--- Begin Message ---
Source: fuseiso
Source-Version: 20070708-7
Done: Sven Geuer <[email protected]>

We believe that the bug you reported is fixed in the latest version of
fuseiso, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sven Geuer <[email protected]> (supplier of updated fuseiso package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 01 May 2025 21:15:26 +0200
Source: fuseiso
Architecture: source
Version: 20070708-7
Distribution: unstable
Urgency: medium
Maintainer: Sven Geuer <[email protected]>
Changed-By: Sven Geuer <[email protected]>
Closes: 1104465
Changes:
 fuseiso (20070708-7) unstable; urgency=medium
 .
   * d/t/*:
     - Extend test to verify fuseiso allows for spaces in file names.
     - Let xorriso write localtime timestamps.
   * d/p/*: Add patch to correct calculation of block count (Closes: #1104465).
   * d/t/*: Extend test to check fix to bug #1104465.
   * d/copyright: Bump years to 2025 where required.
   * d/control: Bump Standards-Version to 4.7.2.
Checksums-Sha1:
 11d292175a7c204d5b6e1960cff252f6e1a4a86c 2032 fuseiso_20070708-7.dsc
 7138afb0f97aa8270ab8afcf529b6ab5f0ffd9d5 11964 fuseiso_20070708-7.debian.tar.xz
 579c90bca426fe481e88257ae20cd8b5d9ef80ff 7383 
fuseiso_20070708-7_amd64.buildinfo
Checksums-Sha256:
 0ad962ff0df4198428d5792c6d08348fc2f6674e5a32fcf59875de456d99adf0 2032 
fuseiso_20070708-7.dsc
 62dc54be6cd8fbb0130421bedb1bf5703c6dcbf67f3d2fa3b495cf986663590e 11964 
fuseiso_20070708-7.debian.tar.xz
 fe6328aaa1d51fe91ca190a7772419597b06639bf65a66fc26c1b4b36d728b63 7383 
fuseiso_20070708-7_amd64.buildinfo
Files:
 52d38d3d23cd2b4a0fa346313a995e8d 2032 otherosfs optional fuseiso_20070708-7.dsc
 828a270521fc030a7cd1a02696aeacf6 11964 otherosfs optional 
fuseiso_20070708-7.debian.tar.xz
 82617126aa26c641cab1768296061c78 7383 otherosfs optional 
fuseiso_20070708-7_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEPfXoqkP8n9/QhvGVrfUO2vit1YUFAmgTyPgPHHNnZUBkZWJp
YW4ub3JnAAoJEK31Dtr4rdWFpJkP/ivvhcXtkwp/hF3A0a+0/6MSUKRro50n8Ehs
MFrfR3HxpvwY3ikroRWqZeugsR9Vyg4JizORameSRacAtbS9z845Qy/pza91T7zc
HqaF2BRbCSzjFgKAyfB3XaNeZd73YF/vy46oRqziP+bqEml38ZWMNBY+amBIQ1VZ
k/ia8z3Lz7vlKYzIY5XVOczdrkCOwUyF4ZRqZED6pQoJiE4V7c08+2YjSv1YJKOB
Rt1q1+kNKzAuSBYrMGRLdaF9LfD8XpwvYwfOodt6Kt94t1ok6oGz23wlyG0niBu9
2/IjPRJPi8x22KzJVQVtZm5pb3BgVhfbend3HBxEFQ7zhNd1nYJ6vxPXcwxlLpeN
/iW3wGgBWH98JLg1AcQwqs76jJpuSlpOK1Wxu/oi3LOKXshof3WGptcMiWTZ5pCI
DTidLm/RjJ6ZZcYLGGE7NqMpfKalw1nGPlNCUtAMJDqUT7gfPYxz+KmITBhtIh7C
GFOGs+kIwsYzQdmTNGNX1l+qnjgtogQLnF6EeeIYcl8t01SX/JUS/l8P6+bpcTx1
EIJ+JukYmeu8tz1beUU2VRxLPmKHOL9fn7MYVsXw5E3L9vQIgd7sNKL/pmYJZ5sb
QtRW0kZ6sEeI3ixhjfAq75RBiHOg9GevVOSm2jwaEtAqq76D1C32ZTCbYka0R84J
oEBJAfa0
=x9/3
-----END PGP SIGNATURE-----

Attachment: pgp3ZihrybTOh.pgp
Description: PGP signature


--- End Message ---

Reply via email to