Skip to contentSkip to conversation

commit 0b5da8d: fuse: add support for SEEK_HOLE and SEEK_DATA in lseek

DISCUSSION Nikolaus Rath 2 participants 2 messages Nov 16, 2016 – Nov 17, 2016 VFS

lore
Share & tools
lore
#0 lore raw

Hi Ravishankar,

In commit 0b5da8d you added support for a new FUSE_LSEEK operation. However, as far as I can tell the corresponding userspace code never landed in libfuse.

Do you have a corresponding patch for libfuse?

Looking at the commit message, I assume this functionality was added specifically for glusterfs which presumably does not use libfuse. But even in that case it would be nice if you could Cc [email protected] so that someone else can add support for this. This is important because AFAIR the libfuse documentation is the only thing that comes close to an official documentation of the FUSE API.

Best,
-Nikolaus

Signature · 4 lines
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«
#1 lore raw

Hi Nikolaus,

Quoted 7 lines · Nikolaus Rath

Hi Ravishankar,

In commit 0b5da8d you added support for a new FUSE_LSEEK operation. However, as far as I can tell the corresponding userspace code never landed in libfuse.

Do you have a corresponding patch for libfuse?

No, unfortunately. I only used gluster to test what I wrote.

Quoted 3 lines

Looking at the commit message, I assume this functionality was added specifically for glusterfs which presumably does not use libfuse.

You're right, gluster has its own code [1].

Quoted 3 lines

But
even in that case it would be nice if you could Cc [email protected]

The discussion[2] actually did start on fuse-devel.

Quoted 1 line

so that someone else can add support

That would be great.

Quoted 4 lines

for this. This is important because AFAIR the libfuse documentation is the only thing that comes close to an official documentation of the FUSE API.

Best regards,
Ravi

[1] https://github.com/gluster/glusterfs/blob/master/xlators/mount/fuse/src/fuse-bridge.c
[2] https://sourceforge.net/p/fuse/mailman/message/34227449/

Quoted 3 lines

Best,
-Nikolaus