[RTEMS Project] #4507: mount call retruns error number and it should return -1

RTEMS trac trac at rtems.org
Sat Aug 28 22:31:05 UTC 2021


#4507: mount call retruns error number and it should return -1
-------------------------------+--------------------------
 Reporter:  Chris Johns        |       Owner:  Chris Johns
     Type:  defect             |      Status:  assigned
 Priority:  normal             |   Milestone:  6.1
Component:  fs                 |     Version:  6
 Severity:  normal             |  Resolution:
 Keywords:  mount libcsupport  |  Blocked By:
 Blocking:                     |
-------------------------------+--------------------------
Description changed by Joel Sherrill:

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.

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.

 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].

--

--
Ticket URL: <http://devel.rtems.org/ticket/4507#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list