[systemd-devel] [PATCH 1/2] Adding unmount functions to be used in shutdown
Gustavo Sverzut Barbieri
barbieri at profusion.mobi
Wed Oct 6 06:44:48 PDT 2010
On Wed, Oct 6, 2010 at 10:40 AM, Gustavo Sverzut Barbieri
<barbieri at profusion.mobi> wrote:
>>> + ioctl(fd, LOOP_CLR_FD, 0);
>>> + r = errno;
>>> + close_nointr(fd);
>>> +
>>> + if (r == ENXIO) /* not bound, so no error */
>>> + r = 0;
>>> + errno = r;
>>> + return -errno;
>>> +}
>>
>> Might be good to print an error message here.
>
> In the ENXIO case? or others? The ENXIO will happen if you do not have
> it in use, so in my machine it will always happen 8 times.
just double checked and the real error case is log_debug() later at
loopback_points_list_detach(), so it is all right!
--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
More information about the systemd-devel
mailing list