mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
swdevt should contain a udev_t not a devt. This resulted in bogus
swap device name reporting. Submitted by: Bill Swingle <unfurl@freebsd.org>
This commit is contained in:
parent
2cde7060d5
commit
d40e02b32d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48647
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)conf.h 8.5 (Berkeley) 1/9/95
|
||||
* $Id: conf.h,v 1.61 1999/07/04 14:58:56 phk Exp $
|
||||
* $Id: conf.h,v 1.62 1999/07/04 19:48:35 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_CONF_H_
|
||||
@ -155,7 +155,7 @@ void ldisc_deregister __P((int));
|
||||
* Swap device table
|
||||
*/
|
||||
struct swdevt {
|
||||
dev_t sw_dev;
|
||||
udev_t sw_dev;
|
||||
int sw_flags;
|
||||
int sw_nblks;
|
||||
struct vnode *sw_vp;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)conf.h 8.5 (Berkeley) 1/9/95
|
||||
* $Id: conf.h,v 1.61 1999/07/04 14:58:56 phk Exp $
|
||||
* $Id: conf.h,v 1.62 1999/07/04 19:48:35 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_CONF_H_
|
||||
@ -155,7 +155,7 @@ void ldisc_deregister __P((int));
|
||||
* Swap device table
|
||||
*/
|
||||
struct swdevt {
|
||||
dev_t sw_dev;
|
||||
udev_t sw_dev;
|
||||
int sw_flags;
|
||||
int sw_nblks;
|
||||
struct vnode *sw_vp;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
|
||||
* $Id: vm_swap.c,v 1.71 1999/06/01 17:11:27 phk Exp $
|
||||
* $Id: vm_swap.c,v 1.72 1999/06/26 02:46:49 mckusick Exp $
|
||||
*/
|
||||
|
||||
#include "opt_devfs.h"
|
||||
@ -314,7 +314,7 @@ swaponvp(p, vp, dev, nblks)
|
||||
nblks = dbtoc(nblks);
|
||||
|
||||
sp->sw_vp = vp;
|
||||
sp->sw_dev = dev;
|
||||
sp->sw_dev = dev2udev(dev);
|
||||
sp->sw_flags |= SW_FREED;
|
||||
sp->sw_nblks = nblks;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user