[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fuse-devel
Subject:    Re: [fuse-devel] Fuse blocking IO
From:       Miklos Szeredi <miklos () szeredi ! hu>
Date:       2009-08-17 12:32:04
Message-ID: E1Md1Nc-00023G-Jg () pomaz-ex ! szeredi ! hu
[Download RAW message or body]

On Thu, 6 Aug 2009, Andrew Richardson wrote:
> Dear All,
> 
>   I'm trying to implement a simple fifo like filesystem using FUSE. 
> 
> When in a read call in the filesystem code I have written, if there is
> nothing in the fifo I sleep for 30 seconds
> 
> (I know that just sleeping for 30 seconds is not what I want In the end
> for a FIFO implementation, this is just a test piece of S/W which I
> thought should work!).
> 
> During this 30 seconds I cannot write to the same fifo file, the write
> blocks until the read returns. This is not what I would like!
> 
> Can I suspend the read and still have the write be processed? 

Yes, read and write can be processed in parallel.  Two writes to the
same file cannot, however.

I don't know why the write blocks for you, maybe you are running in
single threaded mode (-s)?

Thanks,
Miklos

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic