qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/4] 9p: get rid of readdir_r()


From: Greg Kurz
Subject: Re: [Qemu-devel] [PATCH 0/4] 9p: get rid of readdir_r()
Date: Thu, 2 Jun 2016 11:42:29 +0200

On Thu, 2 Jun 2016 10:33:06 +0100
Peter Maydell <address@hidden> wrote:

> On 2 June 2016 at 09:51, Greg Kurz <address@hidden> wrote:
> > The readdir_r() function has a broken design and should not be used anymore.
> > It is expected to be obsoleted in a future version of POSIX.1:
> >
> > http://austingroupbugs.net/view.php?id=696#c2857
> >
> > Glibc has already announced that 2.24 (scheduled for August 2016) will
> > deprecates readdir_r() and encourages people to use readdir() with
> > external synchronization instead.  
> 
> > Since POSIX.1 will require readdir() to be thread-safe when employed on
> > different directory streams, and glibc already does that, the choice
> > was made to have per-directory locking.  
> 
> AIUI the argument is that all sensible implementations of readdir()
> already provide the thread-safety guarantees POSIX is going to
> specify, but have you tested this on one of the BSDs or OSX?
> (and/or checked their current readdir implementation...)
> 

No I haven't because "VirtFS is supported only on Linux" at the moment.

But thanks for raising the flag: it reminds me that there's ongoing
work to support VirtFS on win32 hosts and I should also Cc Michael
Fritscher.

Thanks !

--
Greg

> thanks
> -- PMM
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]