Subject: Re: expanding available mount flags
To: Darrin B. Jewell <dbj@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 10/13/2003 10:20:25
--OFj+1YLvsEfSXdCH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 13, 2003 at 10:12:29AM -0400, Darrin B. Jewell wrote:
>=20
> Since we are down to our last __MNT_UNUSED flag, I have grabbed
> a couple of extra flags by adding an internal mnt_iflag field
> to "struct mount" and moving the MNT_GONE, MNT_UNMOUNT, and
> MNT_WANTRDWR flags into that field.  I include below the
> diff for review.

Sounds good!

> If we need a couple more flags, we could also choose to reuse
> MNT_EXNORESPORT, MNT_EXKERB, MNT_EXPORTANON since these are
> passed to mount(2) only in the ex_flags field of struct export_args
> and are never set in mnt_flags or exported by statfs().

Sounds like the thing to do now. And give them new names in the process.=20
:-)

> Before we use up the last flag, we may want to consider using
> that flag to provide expansion while mantaining backward
> compability.  For example, we could add a flag MNT_VERSIONED,
> which would indicate that the structure passed in the
> "void *data" argument is versioned.  Then either ufs_args
> could be versioned or a filesstem independent and versioned mount
> structure could be added at the top of the filesystem specific
> structure and additional flags could be added there.

An fs-indep structure would be a good thing to have.

> Alternately, we may at some point wish to consider a new
> mount system call, perhaps importing nmount(2) from freebsd
> or doing something else.  This would be a bigger project,
> be we probably want to start thinking about what is the
> best plan for long term maintainability.
>=20
> Please review and comment on the following patch.

In principle looks good.

Take care,

Bill

--OFj+1YLvsEfSXdCH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/it7ZWz+3JHUci9cRAlaFAJ9Bv/+MD5iAF37Yeh33y/V4WtGICACfT07k
8gRFlkS7Zz1cAzEkBfZCPWI=
=s2j3
-----END PGP SIGNATURE-----

--OFj+1YLvsEfSXdCH--