Thread (6 messages) 6 messages, 3 authors, 2012-03-22

how to create file without using extent allocation

From: Akshay Nehe <hidden>
Date: 2012-03-22 13:59:03

Thanks for help, i find it useful.

On 3/22/12, Vlad Dogaru [off-list ref] wrote:
On Thu, Mar 22, 2012 at 3:31 PM, Akshay Nehe [off-list ref]
wrote:
quoted
Hello,

Can we create file on ext4 file system which dose not uses extent
allocation?
Man page of mkfs.ext4 suggests using "-O ^feature" to disable an ext4
feature.  This seems to work:

$ dd if=/dev/zero of=test1 bs=4M count=20
[...]
$ mkfs.ext4 -F test1
[...]
$ file test1
test1: Linux rev 1.0 ext4 filesystem data,
UUID=408f6da2-c4ef-4335-9574-985f3a349ed2 (extents) (huge files)

$ mkfs -O ^extent -F test1
[...]
$ file test1
test1: Linux rev 1.0 ext4 filesystem data,
UUID=23c046d6-db7a-419d-a1d5-0cba3c5b52d0 (huge files)

Hope this helps,
Vlad

-- 
Regards,
Akshay Nehe.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help