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 10:29:01 +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).

fallocate stuff appears both in fuse and posix xlators. I understand the
fuse one is only used if the kernel sends a FALLOCATE FUSE FOP, which
means I can just #ifndef __NetBSD__ it our, since the NetBSD kernel has
no fallocate() system call, and will never issue that FOP. Am I right?

Wild guess: the FALLOCATE FOP is tunnelled thorugh all glusterfs
xlators, and not supporting it in the posix xlator would mean a NetBSD
brick would not be able to honour requests from a Linux client using
that FOP. Am I right?

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



reply via email to

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