[Mono-dev] [PATCH] Mono.Unix.Native.MountFlags

Jonathan Pryor jonpryor at vt.edu
Sat Jan 5 08:11:06 EST 2008

On Sat, 2008-01-05 at 01:31 -0500, Joe Dluzen wrote:
> I was working on a program to mount and unmount various drives/etc
> when I found that Mono.Unix.Native.MountFlags had no option for
> ST_NOEXEC. (I was attempting to mount a DVD in my drive, and saw in
> /proc/mounts that it had an option for noexec.) Looking in
> sys/mount.h, I found the appropriate values and created the diff below
> (which includes additional values that were missing):

This patch has been committed.

For future reference, this patch would not have been enough in
isolation, as MonoPosixHelper would not know about the values you just
added (and thus would generate an error when given these values instead
of translating them appropriately).

So in addition to the Mono.Posix patch, you also need to patch
mono/support.  This is (usually) fairly straightforward:

	cd mono/support
	make refresh

The downside is that `make refresh` depends upon create-native-map,
which is in mono-tools, so you'd have to build & install mono-tools
first before you could refresh mono/support to get the new values you
added to Mono.Unix.Native.MountFlags.

 - Jon

More information about the Mono-devel-list mailing list