[RTEMS Project] #4507: mount call retruns error number and it should return -1
RTEMS trac
trac at rtems.org
Thu Sep 23 23:57:21 UTC 2021
#4507: mount call retruns error number and it should return -1
-------------------------------+--------------------------
Reporter: Chris Johns | Owner: Chris Johns
Type: defect | Status: closed
Priority: normal | Milestone: 6.1
Component: fs | Version: 6
Severity: normal | Resolution: wontfix
Keywords: mount libcsupport | Blocked By:
Blocking: |
-------------------------------+--------------------------
Changes (by Chris Johns):
* status: assigned => closed
* resolution: => wontfix
Old description:
> The `mount` call should return `-1` for an any error with the `errno`
> set. Some paths in the `mount` do this and others so not.
>
> The implementation needs to be changed to only return `-1` when there is
> an error.
>
> mount() is not defined by POSIX but returning -1 and setting errno is
> consistent with
> [https://www.freebsd.org/cgi/man.cgi?query=mount&sektion=2&format=html
> FreeBSD] and [https://man7.org/linux/man-pages/man2/mount.2.html Linux].
New description:
The `mount` call should return `-1` for an any error with the `errno` set.
Some paths in the `mount` do this and others so not.
The implementation needs to be changed to only return `-1` when there is
an error.
--
Comment:
The current behavior is correct. The NFS mounter is not correct.
--
Ticket URL: <http://devel.rtems.org/ticket/4507#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list