gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] fallocate


From: Emmanuel Dreyfus
Subject: Re: [Gluster-devel] fallocate
Date: Sun, 17 Nov 2013 01:45:59 +0100
User-agent: MacSOUP/2.7 (unregistered for 2493 days)

Anand Avati <address@hidden> wrote:

> If you call fallocate() over an existing region with data it shouldn't be
> wiped with 0s. You can also call fallocate() on a hole (in case file was
> ftruncate()ed to a large size) and that region should get "allocated" (i.e
> future write to an fallocated() region should NOT fail with ENOSPC).

It seems it can be emulated, should it be atomic?

> BTW, does NetBSD have the equivalent of open_by_handle[_at]() and
> name_to_handle[_at]() system calls?

That is extended API set 2. With the exception of fexecve(2), I
implemented them in NetBSD-current, which means they will be available
in NetBSD-7.0. Are they also mandatory in glusterfs-3.5? Is they are,
then emulating fallocate() in userland is useless, I would better work
on it in kernel for the next release.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]