On Fri, 12 Nov 2010 00:52:59 +0100 (CET) "Carlos E. R." <carlos.e.r@opensuse.org> wrote:
On Thursday, 2010-11-11 at 12:40 +0100, Carlos E. R. wrote:
This script will abort the hibernate process if there is an NFS mount active. I propose that somebody takes this (modified as appropiate) and add it to all active releases. At least for factory (Bug 568132)
/etc/pm/sleep.d/5nfscheck:
#!/bin/bash
. /usr/lib/pm-utils/functions
RETVAL=0 case "$1" in hibernate|suspend) MONTADO=`mount | grep "type nfs" | grep -v "/proc/fs/nfsd"` if test -n "$MONTADO" ; then
if egrep -q '^\S+ \S+ nfs '; then # ... inhibit suspend ... fi But I still think that this is the wrong approach. My system suspends fine with NFS mounts, if they don't have dirty buffers. The kernel should be fixed if this does not work reliably. Shipping workarounds like this one only makes sure that the real bug is never fixed. -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org