Re: Upgrade of `struct vnd_ioctl'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Arnaud Lacombe <arnaud.lacombe.1@...>
Cc: <tech-kern@...>
Date: Sunday, February 11, 2007 - 6:46 pm

On Sun, Feb 11, 2007 at 02:27:22PM -0500, Arnaud Lacombe wrote:

uint64_t should be preferred for new code.


The process is quite simple:  keep a copy of the current structure with
a different name (e.g., oldvnd_ioctl), and create new ioctl commands
referencing that structure with the name OXXX.

E.g.:

#define OVNDIOCSET       _IOWR('F', 0, struct oldvnd_ioctl)

Then you add an entry in ioctl handler for those commands that do what
they're supposed to do (i.e., in that case convert the value), and put
those specific parts under COMPAT_40.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Upgrade of `struct vnd_ioctl', Arnaud Lacombe, (Sun Feb 11, 3:27 pm)
Re: Upgrade of `struct vnd_ioctl', Quentin Garnier, (Sun Feb 11, 6:46 pm)
Re: Upgrade of `struct vnd_ioctl', Arnaud Lacombe, (Mon Feb 12, 1:46 am)
Re: Upgrade of `struct vnd_ioctl', Martin Husemann, (Sun Feb 11, 3:33 pm)
Re: Upgrade of `struct vnd_ioctl', David Laight, (Sun Feb 11, 5:58 pm)
re: Upgrade of `struct vnd_ioctl', matthew green, (Sun Feb 11, 5:11 pm)