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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 12 Oct 2007 09:46:47 +0530
From:	"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>
To:	Andreas Dilger <adilger@...sterfs.com>
CC:	akpm@...ux-foundation.org, linux-ext4@...r.kernel.org
Subject: Re: [PATCH] ext2: Fix the max file size for ext2 file system.



Andreas Dilger wrote:
> On Oct 11, 2007  20:20 +0530, Aneesh Kumar K.V wrote:
>> +	/* indirect blocks */
>> +	meta_blocks = 1;
>> +	/* double indirect blocks */
>> +	meta_blocks += 1 + (1LL << (bits-2));
>> +	/* tripple indirect blocks */
>> +	meta_blocks += 1 + (1LL << (bits-2)) + (1LL << (2*(bits-2)));
> 
> It may be worthwhile calculating how many indirect blocks there actually
> are in a file that size.  

The math become more confusing for that right ?. I am not sure we need to be that specific.


>Also note that your comments are backward -
> there is at most a single triple indirect block per file.

What i meant by those comment was, the count of meta data blocks taken for
different type of indirect blocks.

-aneesh
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ