Bug 678633 - (Re-) add support for _netdev devices
Summary: (Re-) add support for _netdev devices
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-18 17:19 UTC by David Mudrich
Modified: 2014-03-17 03:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-04 16:33:41 UTC
Type: ---


Attachments (Terms of Use)

Description David Mudrich 2011-02-18 17:19:15 UTC
Description of problem:

The netfs initscript does not mount _netdev devices, which do not contain one of nfs4,cifs,ncpfs,gfs.

Long time ago, there has been a patch to restrict mount -a to:
mount -a -t nonfs,nfs4,cifs,ncpfs,gfs

This leads to a regression, both fstab lines will not be mounted:
/dev/md_d5012		/home/STORAGE		xfs	_netdev		0 0
/dev/etherd/e0.3	/home/BACKUP		ext3	_netdev		0 0

Version-Release number of selected component (if applicable):
9.20.1-1.fc14

How reproducible:
Always, as above.
  
Actual results:
_netdev devices not mounted

Expected results:
_netdev devices mounted

Additional info:
Added the following line before the existing mount command:

action $"Mounting network blockdevices: " mount -a -O _netdev -t nonfs,nonfs4,nocifs,noncpfs,nogfs

Comment 1 David Mudrich 2011-02-18 17:29:11 UTC
Forgot to mention: the added line is a patch to make it work.

Comment 2 Bill Nottingham 2011-02-21 17:20:35 UTC
That shouldn't be needed; something else must be wrong. If you run that mount command (without the -O ...), what does it try to do?

Comment 3 David Mudrich 2011-03-03 19:58:19 UTC
I haven't tested, but I assume a regression to bug #4868 (1999).

ie.:

until 1999, which included not-yet-mounted _netdev devices:
mount -a

from 1999, after Bugfix #4868, _netdev was forgotten:
mount -a -t nonfs,smbfs,ncpfs

has been expanded to, still no _netdev:
mount -a -t nonfs,nfs4,cifs,ncpfs,gfs


_netdev is needed if you want to mount a filesystem other than nfs4,cifs,ncpfs or gfs lately, eg. on AoE devices.
If we do a simple mount -a here, someone needs to examine if the old bug #4868 still occurs.

Comment 4 Bill Nottingham 2011-03-03 20:31:56 UTC
_netdev *should not be needed*. I believe you misunderstand how -t works.

What that statement is:

mount all filesystems except nfs, nfs4, cifs, ncpfs, and gifs.

The 'no' applies to all of the listed filesystems.

Comment 5 David Mudrich 2011-03-04 16:33:41 UTC
OK, I misunderstood that.

That is, all other outstanding mounts get done, including _netdev.

Thanks.


Note You need to log in before you can comment on or make changes to this bug.