Mailinglist Archive: opensuse-factory (648 mails)
| < Previous | Next > |
[opensuse-factory] NFS and hibernation
- From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
- Date: Thu, 11 Nov 2010 12:40:12 +0100 (CET)
- Message-id: <alpine.LNX.2.00.1011111222310.5900@xxxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I post this here because I want to add a feature that should not be too
dificult. I can write the script, but I need some help with two doubts.
I think it is known that the kernel oopses when trying to hibernate a machine and there is an NFS mount (Bug 568132).
I wondered if I could create an script in /etc/pm/sleep.d/ that detects there is an NFS mount active, and aborts hibernation warning the user.
But my 1st problem is how to detect there is an NFS mount?
I tried this:
mount | grep "type nfs"
but it fails because it hits on:
nfsd on /proc/fs/nfsd type nfsd (rw)
Maybe I'm foggy now and can't make grep get what I want - too little sleep tonight :-)
Perhaps showmount, but I don't know how to make it show only imported filesystems.
And after that, I need something in the /etc/pm/sleep.d/00_checknfs script that aborts the process. Some result code, perhaps? Perhaps someone of the devs here knows about that one?
- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
iEUEARECAAYFAkzb1iMACgkQtTMYHG2NR9Ut8QCeJyyusooPVqimo5hrbr0ITlZQ
tfUAmJDLXt5nXGyyOmLKpMR03nbX/qg=
=cW0j
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
Hash: SHA1
Hi,
I post this here because I want to add a feature that should not be too
dificult. I can write the script, but I need some help with two doubts.
I think it is known that the kernel oopses when trying to hibernate a machine and there is an NFS mount (Bug 568132).
I wondered if I could create an script in /etc/pm/sleep.d/ that detects there is an NFS mount active, and aborts hibernation warning the user.
But my 1st problem is how to detect there is an NFS mount?
I tried this:
mount | grep "type nfs"
but it fails because it hits on:
nfsd on /proc/fs/nfsd type nfsd (rw)
Maybe I'm foggy now and can't make grep get what I want - too little sleep tonight :-)
Perhaps showmount, but I don't know how to make it show only imported filesystems.
And after that, I need something in the /etc/pm/sleep.d/00_checknfs script that aborts the process. Some result code, perhaps? Perhaps someone of the devs here knows about that one?
- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
iEUEARECAAYFAkzb1iMACgkQtTMYHG2NR9Ut8QCeJyyusooPVqimo5hrbr0ITlZQ
tfUAmJDLXt5nXGyyOmLKpMR03nbX/qg=
=cW0j
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |