This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: mount()/umount() prototypes
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Savin Zlobec <savin at torina dot fe dot uni-lj dot si>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: 05 Sep 2003 23:08:03 +0100
- Subject: [ECOS] Re: mount()/umount() prototypes
- References: <Pine.LNX.4.30.0309052037490.25450-100000@torina.fe.uni-lj.si>
Savin Zlobec <savin@torina.fe.uni-lj.si> writes:
>
> Since we are on the topic - I really miss flags field in (u)mount.
> Especially to umount, when I need to do a forced umount (in case
> the CF gets disconnected and then connected back again).
> Both BSD and Linux have this (well in Linux you have umount2).
Given that these functions are not used extensively at present, and
there are relatively few calls to them, we probably have some
flexibility in re-defining them. Maybe we should add at least a flags
parameter to each, and maybe an additional data parameter to
mount(). This would bring then roughly in to line with the Linux
functions.
These extra parameters would also need to be propagated down into the
underlying filesystem calls.
If you would like to work up a patch to do this then I'm fairly sure
it would be accepted.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss