|
From: Jun He <ju...@gm...> - 2012-12-04 20:11:39
|
Oh, amazing. It works!
Also, this also works
./myfuse /mnt/fuse8 -d -o direct_io
Why didn't I try this... :(
Thanks Kevin,
Jun
On Tue, Dec 4, 2012 at 12:20 PM, Fox, Kevin M <kev...@pn...> wrote:
> In you open callback, try something like:
> fi->direct_io = 1;
>
> Kevin
> ________________________________________
> From: Jun He [ju...@gm...]
> Sent: Tuesday, December 04, 2012 11:11 AM
> To: fus...@li...
> Subject: [fuse-devel] Fake read sizes in FUSE (I want to get original user
> requests)
>
> Hi,
> I am trying to capture read patterns from the user applications. But FUSE
> always change the read sizes, mostly 4096. To clarify the problem, I use an
> example here:
>
> The user application:
> ...
> *pread(fd, 100, 7); // offset 100, size 7*
> ...
>
> But I want to get original user requests(offset, size) in FUSE by something
> like this:
>
> *int xmp_read(...) {*
> * fprintf(stderr, "%lld, %lld\n", offset, size);*
> * ....*
> *}*
>
> It prints out:
> 100, 4096
>
> How can I get the original user requests in FUSE? So it will print out
> 100, 7
>
> I tried different combination of the FUSE options. Like:
> *$./patfuse /mnt/fuse8 -sync_read -o kernel_cache -o max_readahead=0 -o
> max_background=0 -d -o max_read=3=3 -o no_splice_read*
> No luck.
>
>
> Thanks,
> Jun
>
>
> --
> Jun He
> http://mypages.iit.edu/~jhe24/
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> fuse-devel mailing list
> fus...@li...
> https://lists.sourceforge.net/lists/listinfo/fuse-devel
>
--
Jun He
http://mypages.iit.edu/~jhe24/
|