1 Mar 2011 12:55
Re: [udisks] CD-ROM polling failed due to O_EXCL flag (poller.c)
Karel Zak <kzak <at> redhat.com>
2011-03-01 11:55:01 GMT
2011-03-01 11:55:01 GMT
On Sat, Feb 26, 2011 at 04:53:16PM +0800, PCMan wrote: > Thanks for the suggestions. > I made a new patch reading from /proc/self/mountinfo as suggested by you. > In addition, no code is taken from HAL so there is no license issue now. > Please review the patch attached to this mail. > > On Sat, Feb 26, 2011 at 12:12 AM, Kay Sievers <kay.sievers <at> vrfy.org> wrote: > > On Fri, Feb 25, 2011 at 14:47, PCMan <pcman.tw <at> gmail.com> wrote: > >> I made a small patch against the latest udisks in git after hacking HAL daemon > >> and it works. Please review the patch. Thanks a lot. > >> > >> https://bugs.freedesktop.org/attachment.cgi?id=43798&action=edit > > > > mtab is officially dead now, even in mount(8). Please always use well, it's experimental death(Continue reading)> > /proc/self/mountinfo, it has the major/minor in there, which is a far > > more reliable match than the device file name. Example is here: are you sure? [...] > + if (stat (device_file, &statbuf) < 0) > + return FALSE; > + > + ret = FALSE; > + f = fopen ("/proc/self/mountinfo", "r"); > + if (f)
> > /proc/self/mountinfo, it has the major/minor in there, which is a far
> > more reliable match than the device file name. Example is here:
are you sure?
[...]
> + if (stat (device_file, &statbuf) < 0)
> + return FALSE;
> +
> + ret = FALSE;
> + f = fopen ("/proc/self/mountinfo", "r");
> + if (f)
RSS Feed