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-next>] [day] [month] [year] [list]
Message-ID: <50081EFC.5060601@gmail.com>
Date:	Thu, 19 Jul 2012 22:51:40 +0800
From:	Wang Sheng-Hui <shhuiw@...il.com>
To:	Allison Henderson <achender@...ux.vnet.ibm.com>,
	Lukas Czerner <lczerner@...hat.com>,
	Theodore Ts'o <tytso@....edu>, linux-ext4@...r.kernel.org
Subject: One question about ext4_fallocate

Dear all,

I have one question about ext4_fallocate:
	For its parameters, offset & len, it will preallocate
	one space with length >= len, right?

>From the code:
	map.m_lblk = offset >> blkbits;
	/*
	 * We can't just convert len to max_blocks because
	 * If blocksize = 4096 offset = 3072 and len = 2048
	 */
	max_blocks = (EXT4_BLOCK_ALIGN(len + offset, blkbits) >> blkbits)
		- map.m_lblk;

We can see that the target space is enlarged to the (floor, ceiling) of 
(offset, offset+len). Right?

If I'm wrong, please correct me.


Regards,
--
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