From: Gorka Guardiola <paurea@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] plan9 iso image
Date: Fri, 28 Jun 2013 22:06:11 +0200 [thread overview]
Message-ID: <CACm3i_h6o40izra722u4hbfGAwtqKVoSry3+nEhnYNzc2p6OaQ@mail.gmail.com> (raw)
In-Reply-To: <CACm3i_j=_1CeZeROSL-DmgpCUEFj7qxDWRp27BC5+y6rJw1WqQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2354 bytes --]
So... looking at the standard, the problem may be that
the volume size is in bytes instead of in blocks?
When I xd a plan 9 image (bytes are represented in little and
big endian):
0008000 01434430 30310100 504c414e 20392042
0008010 4f4f5420 49534f39 36363020 20202020
0008020 20202020 20202020 504c414e 2039202d
0008030 204d4159 20372032 30313220 32333a32
0008040 33202020 20202020 00000000 00000000
0008050 00305600 00563000 00000000 00000000
^^^^^^ ^^^^^^^
volume size in bytes (should this be in logical blocks?)
0008060 00000000 00000000 00000000 00000000
0008070 00000000 00000000 01000001 01000001
0008080 00080800 0a000000 0000000a c60a0000
^^^^^ ^^^^
Block size, 2K
0008090 00000000 00000ac7 00000000 2200c20a
00080a0 00000000 0ac20010 00000000 10007005
00080b0 07151737 00020000 01000001 01003956
The size of the iso given by ls is 5656576, 0x00565000
which is close enough to 0x563000 in bytes.
I xd a 90M linux iso I have and got:
0008000 01434430 30310100 4c494e55 58202020
0008010 20202020 20202020 20202020 20202020
0008020 20202020 20202020 4344524f 4d202020
0008030 20202020 20202020 20202020 20202020
0008040 20202020 20202020 00000000 00000000
0008050 fdb30000 0000b3fd 00000000 00000000
^^^^^^^^^^^^^^^^^
90M/2K
0008060 00000000 00000000 00000000 00000000
0008070 00000000 00000000 01000001 01000001
0008080 00080800 0a000000 0000000a 14000000
^^^^^^^^^
2K block size
0008090 00000000 00000016 00000000 22001800
00080a0 00000000 00180008 00000000 08006b05
00080b0 1808100a 20020000 01000001 01002020
So the size should be in Blocks and it is in bytes, this is why it is wrong.
I don't understand why k3b reports double the size because it
is much more. Unless I am not seeing something...
G.
On Fri, Jun 28, 2013 at 8:57 PM, Gorka Guardiola <paurea@gmail.com> wrote:
> http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-119.pdf
>
> page 19:
>
>
> Volume Space Size (BP 81 to 88)
> This field shall specify as a 32-bit number the number of Logical Blocks
> in which the Volume Space of the
> volume is recorded.
> This field shall be recorded according to 7.3.3.
>
>
>
>
>
--
- curiosity sKilled the cat
[-- Attachment #2: Type: text/html, Size: 3775 bytes --]
next prev parent reply other threads:[~2013-06-28 20:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 16:27 Terry Wendt
2013-06-28 16:40 ` erik quanstrom
2013-06-28 17:12 ` Terry Wendt
2013-06-28 17:17 ` Paul A. Patience
2013-06-28 17:12 ` Gorka Guardiola
2013-06-28 17:19 ` erik quanstrom
2013-06-28 17:43 ` Gorka Guardiola
2013-06-28 17:50 ` Terry Wendt
2013-06-28 18:13 ` erik quanstrom
2013-06-28 17:38 ` tlaronde
2013-06-28 18:13 ` Gorka Guardiola
2013-06-28 18:16 ` Gorka Guardiola
2013-06-28 18:41 ` Gorka Guardiola
2013-06-28 18:50 ` erik quanstrom
2013-06-28 18:57 ` Gorka Guardiola
2013-06-28 20:06 ` Gorka Guardiola [this message]
2013-06-28 20:13 ` Gorka Guardiola
2013-06-28 20:20 ` Gorka Guardiola
2013-06-28 20:36 ` Gorka Guardiola
2013-06-28 17:06 ` Gorka Guardiola
2013-06-28 17:15 ` Terry Wendt
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=CACm3i_h6o40izra722u4hbfGAwtqKVoSry3+nEhnYNzc2p6OaQ@mail.gmail.com \
--to=paurea@gmail.com \
--cc=9fans@9fans.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).