lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 22 Jun 2018 15:10:34 -0600
From:   Andreas Dilger <adilger@...ger.ca>
To:     "Theodore Y. Ts'o" <tytso@....edu>
Cc:     linux-ext4@...r.kernel.org
Subject: Re: [PATCH 05/10] ext2fs: annotate superblock/inode offsets


> On Jun 22, 2018, at 10:58 AM, Theodore Y. Ts'o <tytso@....edu> wrote:
> 
> On Tue, May 01, 2018 at 10:26:01PM -0600, Andreas Dilger wrote:
>> Add byte offsets for the fields in ext2_super_block and ext2_inode
>> for convenience when debugging on-disk structures.
>> 
>> Signed-off-by: Andreas Dilger <adilger@...ger.ca>
> 
> Thanks, applied.  By the way, the way I'pve normally get the byte
> offsets for the superblock is to use ./lib/ext2fs/tst_super_size.
> 
> At the moment tst_super_size prints the offsets in decimal, and your
> patch adds offsets in hex.  Right now, debugfs's hexdump and idump
> commands prints its offsets in octal, because of the precedence of od.
> 
> What do people think?  Should we standardize on some base in how we
> display and print offsets and hexdumps?

I used hex offsets mainly because they are more compact, and make it
more clear when a 64-bit field is properly aligned on a 64-bit boundary.

Cheers, Andreas






Download attachment "signature.asc" of type "application/pgp-signature" (874 bytes)

Powered by blists - more mailing lists