Re: can enbd server run in kernel?

Ming Zhang <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
On Sat, 2004-11-27 at 22:49, Peter T. Breuer wrote:
> In article <[email protected]> you wrote:
> > The msync() function shall fail if:
> > 
> > [EBUSY] 
> >         Some or all of the addresses in the range starting at addr and
> >         continuing for len bytes are locked, and MS_INVALIDATE is
> >         specified.
> > 
> > googled. :P
> > 
> > but locked by whom?
> 
> Oh - yes, I believe the server does lock portions of the file as it
> reads or writes to them, in order to prevent overlaps with other
> server daemons. But that's its own lock.
en, this is possible. a better way is to probe kernel and see which
process holds this lock for what reason. maybe some linux system
programming guru can solve this. :P

> 
> Thanks.
> 
> Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.