From: ccmail111 <ccm...@ya...> - 2010-08-13 19:28:50
|
can someone please respond ? --- On Thu, 8/12/10, ccmail111 <ccm...@ya...> wrote: From: ccmail111 <ccm...@ya...> Subject: FUSE and lseek To: fus...@li... Date: Thursday, August 12, 2010, 8:07 PM Hi, I downloaded FUSE 2.8.4. I donot see support for lseek. Is this right ? I donot see lseek patch integrated: http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 Any suggestions? Thanks ! CM |
From: Stef B. <st...@gm...> - 2010-08-13 20:29:11
|
Yes, but I'm not an expert on this topic. According to me seek is supported, cause files presented by FUSE are seekable. Simple. After opening a file, FUSE supports it. The patch you mention, has something to do with bmap support. Stef 2010/8/13 ccmail111 <ccm...@ya...> > > can someone please respond ? > > --- On Thu, 8/12/10, ccmail111 <ccm...@ya...> wrote: > > > From: ccmail111 <ccm...@ya...> > Subject: FUSE and lseek > To: fus...@li... > Date: Thursday, August 12, 2010, 8:07 PM > > > > > > > > > > > > > Hi, > > I downloaded FUSE 2.8.4. > I donot see support for lseek. Is this right ? > > I donot see lseek patch integrated: > http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 > > Any suggestions? > > Thanks ! > CM > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel > |
From: ccmail111 <ccm...@ya...> - 2010-08-13 20:37:55
|
Thanks Stef for prompt response. Is there anyone who is expert on topic to shed some light ? Unless I missed, I donot see seek callback (similar to open/read) in code. Thanks, Sunil. --- On Fri, 8/13/10, Stef Bon <st...@gm...> wrote: From: Stef Bon <st...@gm...> Subject: Re: [fuse-devel] FUSE and lseek To: "ccmail111" <ccm...@ya...> Cc: fus...@li... Date: Friday, August 13, 2010, 4:29 PM Yes, but I'm not an expert on this topic. According to me seek is supported, cause files presented by FUSE are seekable. Simple. After opening a file, FUSE supports it. The patch you mention, has something to do with bmap support. Stef 2010/8/13 ccmail111 <ccm...@ya...> can someone please respond ? --- On Thu, 8/12/10, ccmail111 <ccm...@ya...> wrote: From: ccmail111 <ccm...@ya...> Subject: FUSE and lseek To: fus...@li... Date: Thursday, August 12, 2010, 8:07 PM Hi, I downloaded FUSE 2.8.4. I donot see support for lseek. Is this right ? I donot see lseek patch integrated: http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 Any suggestions? Thanks ! CM ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ fuse-devel mailing list fus...@li... https://lists.sourceforge.net/lists/listinfo/fuse-devel |
From: Allen P. <pul...@co...> - 2010-08-13 20:56:36
|
After an application calls seek, you will see it reflected in the offset argument the next time either the read or write function is called. -----Original Message----- From: ccmail111 [mailto:ccm...@ya...] Sent: Friday, August 13, 2010 4:38 PM To: Stef Bon Cc: fus...@li... Subject: Re: [fuse-devel] FUSE and lseek Thanks Stef for prompt response. Is there anyone who is expert on topic to shed some light ? Unless I missed, I donot see seek callback (similar to open/read) in code. Thanks, Sunil. --- On Fri, 8/13/10, Stef Bon <st...@gm...> wrote: From: Stef Bon <st...@gm...> Subject: Re: [fuse-devel] FUSE and lseek To: "ccmail111" <ccm...@ya...> Cc: fus...@li... Date: Friday, August 13, 2010, 4:29 PM Yes, but I'm not an expert on this topic. According to me seek is supported, cause files presented by FUSE are seekable. Simple. After opening a file, FUSE supports it. The patch you mention, has something to do with bmap support. Stef 2010/8/13 ccmail111 <ccm...@ya...> can someone please respond ? --- On Thu, 8/12/10, ccmail111 <ccm...@ya...> wrote: From: ccmail111 <ccm...@ya...> Subject: FUSE and lseek To: fus...@li... Date: Thursday, August 12, 2010, 8:07 PM Hi, I downloaded FUSE 2.8.4. I donot see support for lseek. Is this right ? I donot see lseek patch integrated: http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 Any suggestions? Thanks ! CM ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ fuse-devel mailing list fus...@li... https://lists.sourceforge.net/lists/listinfo/fuse-devel ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ fuse-devel mailing list fus...@li... https://lists.sourceforge.net/lists/listinfo/fuse-devel |
From: ccmail111 <ccm...@ya...> - 2010-08-19 17:35:06
|
Thank you, Question re: unrestricted ioctl in fuse as in I see: * * Note: For unrestricted ioctls (not allowed for FUSE * servers), data in and out areas can be discovered by giving * iovs and setting FUSE_IOCTL_RETRY in @flags. For * restricted ioctls, kernel prepares in/out data area * according to the information encoded in cmd. * * Introduced in version 2.8 I have a requirement to use unrestricted ioctl using FUSE in my FUSE server. Is there an example ? Thanks ! --- On Fri, 8/13/10, Allen Pulsifer <pul...@co...> wrote: From: Allen Pulsifer <pul...@co...> Subject: RE: [fuse-devel] FUSE and lseek To: "'ccmail111'" <ccm...@ya...> Cc: fus...@li... Date: Friday, August 13, 2010, 4:56 PM After an application calls seek, you will see it reflected in the offset argument the next time either the read or write function is called. -----Original Message----- From: ccmail111 [mailto:ccm...@ya...] Sent: Friday, August 13, 2010 4:38 PM To: Stef Bon Cc: fus...@li... Subject: Re: [fuse-devel] FUSE and lseek Thanks Stef for prompt response. Is there anyone who is expert on topic to shed some light ? Unless I missed, I donot see seek callback (similar to open/read) in code. Thanks, Sunil. --- On Fri, 8/13/10, Stef Bon <st...@gm...> wrote: From: Stef Bon <st...@gm...> Subject: Re: [fuse-devel] FUSE and lseek To: "ccmail111" <ccm...@ya...> Cc: fus...@li... Date: Friday, August 13, 2010, 4:29 PM Yes, but I'm not an expert on this topic. According to me seek is supported, cause files presented by FUSE are seekable. Simple. After opening a file, FUSE supports it. The patch you mention, has something to do with bmap support. Stef 2010/8/13 ccmail111 <ccm...@ya...> can someone please respond ? --- On Thu, 8/12/10, ccmail111 <ccm...@ya...> wrote: From: ccmail111 <ccm...@ya...> Subject: FUSE and lseek To: fus...@li... Date: Thursday, August 12, 2010, 8:07 PM Hi, I downloaded FUSE 2.8.4. I donot see support for lseek. Is this right ? I donot see lseek patch integrated: http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 Any suggestions? Thanks ! CM ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ fuse-devel mailing list fus...@li... https://lists.sourceforge.net/lists/listinfo/fuse-devel ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ fuse-devel mailing list fus...@li... https://lists.sourceforge.net/lists/listinfo/fuse-devel |
From: Stef B. <st...@gm...> - 2010-08-14 09:11:58
|
Hello ccmail111, have the answers been helpfull in some way? Stef |
From: ccmail111 <ccm...@ya...> - 2010-08-19 17:30:05
|
Yes, thanks everyone. I have couple of questions: looking at hello_ll.c, I see fuse_lowlevel_new(..) instead of fuse_main(..). Is there any documentation for ll related ? Second, In fuse_lib_ioctl(..) I see: if (flags & FUSE_IOCTL_UNRESTRICTED) goto err; However I dont see this being set anywhere. Is it expected that libfuse users need to pass this in as parameter flag ? Also related, I have a case where some mount points I would like to be RESTRICTED (default) and other users use UNRESTRICTED (I have a socket process which does sendmg etc). Any suggestions ? Thanks ! --- On Sat, 8/14/10, Stef Bon <st...@gm...> wrote: From: Stef Bon <st...@gm...> Subject: Re: [fuse-devel] FUSE and lseek To: "ccmail111" <ccm...@ya...> Cc: fus...@li... Date: Saturday, August 14, 2010, 5:11 AM Hello ccmail111, have the answers been helpfull in some way? Stef |
From: Goswin v. B. <gos...@we...> - 2010-08-25 15:07:11
|
ccmail111 <ccm...@ya...> writes: > Yes, thanks everyone. > I have couple of questions: > looking at hello_ll.c, I see fuse_lowlevel_new(..) instead of fuse_main(..). > Is there any documentation for ll related ? The fuse_lowlevel.h has lots of comments. If you know the highlevel then that should explain most of the lowlevel. MfG Goswin |
From: Stef B. <st...@gm...> - 2010-08-13 20:42:47
|
I think you're looking at the wrong place. Fuse provides a filedescriptor to a file you can use. Is there a callback necessary to do a seek?? Stef 2010/8/13 ccmail111 <ccm...@ya...> > > Thanks Stef for prompt response. > Is there anyone who is expert on topic to shed some light ? > > Unless I missed, I donot see seek callback (similar to open/read) in code. > > Thanks, > > Sunil. > > > --- On *Fri, 8/13/10, Stef Bon <st...@gm...>* wrote: > > > From: Stef Bon <st...@gm...> > Subject: Re: [fuse-devel] FUSE and lseek > To: "ccmail111" <ccm...@ya...> > Cc: fus...@li... > Date: Friday, August 13, 2010, 4:29 PM > > > Yes, but I'm not an expert on this topic. > > According to me seek is supported, cause files presented by FUSE are > seekable. Simple. > After opening a file, FUSE supports it. > > The patch you mention, has something to do with bmap support. > > Stef > > > > 2010/8/13 ccmail111 <ccm...@ya...<http://us.mc342.mail.yahoo.com/mc/compose?to=ccm...@ya...> > > > > > can someone please respond ? > > --- On Thu, 8/12/10, ccmail111 <ccm...@ya...<http://us.mc342.mail.yahoo.com/mc/compose?to=ccm...@ya...>> > wrote: > > > From: ccmail111 <ccm...@ya...<http://us.mc342.mail.yahoo.com/mc/compose?to=ccm...@ya...> > > > Subject: FUSE and lseek > To: fus...@li...<http://us.mc342.mail.yahoo.com/mc/compose?to=fus...@li...> > Date: Thursday, August 12, 2010, 8:07 PM > > > > > > > > > > > > > Hi, > > I downloaded FUSE 2.8.4. > I donot see support for lseek. Is this right ? > > I donot see lseek patch integrated: > http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 > > Any suggestions? > > Thanks ! > CM > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > fuse-devel mailing list > fus...@li...<http://us.mc342.mail.yahoo.com/mc/compose?to=fus...@li...> > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > > > |
From: Kevin F. <Kev...@pn...> - 2010-08-13 20:54:57
|
By default you don't need to do anything special for a seek. read/write take arguments that are adjusted by seeks. If you want to detect if a seek happened, just save the old value and check against it. Kevin On Fri, 2010-08-13 at 13:42 -0700, Stef Bon wrote: > I think you're looking at the wrong place. > Fuse provides a filedescriptor to a file you can use. > Is there a callback necessary to do a seek?? > > Stef > > > > 2010/8/13 ccmail111 <ccm...@ya...> > > > > > Thanks Stef for prompt response. > > Is there anyone who is expert on topic to shed some light ? > > > > Unless I missed, I donot see seek callback (similar to open/read) in code. > > > > Thanks, > > > > Sunil. > > > > > > --- On *Fri, 8/13/10, Stef Bon <st...@gm...>* wrote: > > > > > > From: Stef Bon <st...@gm...> > > Subject: Re: [fuse-devel] FUSE and lseek > > To: "ccmail111" <ccm...@ya...> > > Cc: fus...@li... > > Date: Friday, August 13, 2010, 4:29 PM > > > > > > Yes, but I'm not an expert on this topic. > > > > According to me seek is supported, cause files presented by FUSE are > > seekable. Simple. > > After opening a file, FUSE supports it. > > > > The patch you mention, has something to do with bmap support. > > > > Stef > > > > > > > > 2010/8/13 ccmail111 <ccm...@ya...<http://us.mc342.mail.yahoo.com/mc/compose?to=ccm...@ya...> > > > > > > > > > can someone please respond ? > > > > --- On Thu, 8/12/10, ccmail111 <ccm...@ya...<http://us.mc342.mail.yahoo.com/mc/compose?to=ccm...@ya...>> > > wrote: > > > > > > From: ccmail111 <ccm...@ya...<http://us.mc342.mail.yahoo.com/mc/compose?to=ccm...@ya...> > > > > > Subject: FUSE and lseek > > To: fus...@li...<http://us.mc342.mail.yahoo.com/mc/compose?to=fus...@li...> > > Date: Thursday, August 12, 2010, 8:07 PM > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > I downloaded FUSE 2.8.4. > > I donot see support for lseek. Is this right ? > > > > I donot see lseek patch integrated: > > http://kerneltrap.org/mailarchive/linux-kernel/2008/8/28/3115424 > > > > Any suggestions? > > > > Thanks ! > > CM > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > fuse-devel mailing list > > fus...@li...<http://us.mc342.mail.yahoo.com/mc/compose?to=fus...@li...> > > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel |
From: Goswin v. B. <gos...@we...> - 2010-08-13 21:28:21
|
Stef Bon <st...@gm...> writes: > Yes, but I'm not an expert on this topic. > > According to me seek is supported, cause files presented by FUSE are > seekable. Simple. > After opening a file, FUSE supports it. > > The patch you mention, has something to do with bmap support. > > Stef Correct me if I'm wrong but I think nobody has a good enough use case for the seek callback to actualy push it into the vanilla kernel and libfuse and therefore it wasn't added. The kernel handles the seeks internally just fine and you just see the adjusted offset in the next read/write call. What do you need the callback for? MfG Goswin |