devfs
[Top] [All Lists]

swapon -a errors w/ devfs

To: devfs@xxxxxxxxxxx
Subject: swapon -a errors w/ devfs
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Tue, 01 May 2001 20:36:25 -0500
Sender: owner-devfs@xxxxxxxxxxx
Here's a new one...

In Red Hat's rc.sysinit, they actually issue the swapon command twice -
first as "swapon -a -e" and then as "swapon -a"  (not quite sure why
they do this)

When devfs is enabled, the second "swapon" generates an error saying
that the swap device is busy.

The swapon man pages say that "swapon -a" will silently skip swap
devices that are already enabled, but this is not the case w/ devfs
enabled.

My guess is a bug in swapon, that it's getting confused by the symlink
to the device (fstab has /dev/hda5 as swap, for example).

Any ideas?

-Eric

-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.

<Prev in Thread] Current Thread [Next in Thread>