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] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOJsxLEXbWbEhqX2YfzcQhyLJrY0H2ifCJCvGkoFHZsYAZEMPA@mail.gmail.com>
Date:	Tue, 15 Nov 2011 13:23:31 +0200
From:	Pekka Enberg <penberg@...nel.org>
To:	Amerigo Wang <amwang@...hat.com>
Cc:	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	Hugh Dickins <hughd@...gle.com>, linux-mm@...ck.org
Subject: Re: [Patch] tmpfs: add fallocate support

Hello,

On Tue, Nov 15, 2011 at 10:42 AM, Amerigo Wang <amwang@...hat.com> wrote:
> This patch adds fallocate support to tmpfs. I tested this patch
> with the following test case,
>
>        % sudo mount -t tmpfs -o size=100 tmpfs /mnt
>        % touch /mnt/foobar
>        % echo hi > /mnt/foobar
>        % fallocate -o 3 -l 5000 /mnt/foobar
>        fallocate: /mnt/foobar: fallocate failed: No space left on device
>        % fallocate -o 3 -l 3000 /mnt/foobar
>        % ls -l /mnt/foobar
>        -rw-rw-r-- 1 wangcong wangcong 3003 Nov 15 16:10 /mnt/foobar
>        % dd if=/dev/zero of=/mnt/foobar seek=3 bs=1 count=3000
>        3000+0 records in
>        3000+0 records out
>        3000 bytes (3.0 kB) copied, 0.0153224 s, 196 kB/s
>        % hexdump -C /mnt/foobar
>        00000000  68 69 0a 00 00 00 00 00  00 00 00 00 00 00 00 00  |hi..............|
>        00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
>        *
>        00000bb0  00 00 00 00 00 00 00 00  00 00 00                 |...........|
>        00000bbb
>        % cat /mnt/foobar
>        hi
>
> Signed-off-by: WANG Cong <amwang@...hat.com>

What's the use case for this?

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ