1833459 Members
3034 Online
110052 Solutions
New Discussion

fuser on cifs

 
SOLVED
Go to solution
Eric SAUBIGNAC
Honored Contributor

fuser on cifs

Hi everybody,

in an mc service guard context i need to do some "fuser -ku" on cifs mounted file systems. But nor "fuser localhost:\\NTSRV\SHARE", nor "fuser -c " are working ...

Any idea about my problem ? I hope i just miss a patch but unfortunatly i think that it doesn't work at all ...

Eric

PBFWME
3 REPLIES 3
Vincent Stedema
Esteemed Contributor
Solution

Re: fuser on cifs

The fuser command probably doesn't work (yet) for CIFS filesystems and I'm not sure if smbstatus will supply the information you want. Otherwise you can always script around lsof ( http://hpux.tn.tudelft.nl/hppd/hpux/Sysadmin/lsof-4.55/ ) to kill the processes on specific filesystems.

Regards,

Vincent
Eric SAUBIGNAC
Honored Contributor

Re: fuser on cifs

Ok vincent,

smbstatus works only with the server portion of cifs, not with cifsclient.

But lsof works fine. That's a tool i did not know! If you want to run it on a 64 bits HP-UX, just add +DD64 in the CFLAGS options of the Makefile at line 35 :

CFLAGS= +DD64 ${CDEFS} ${INCL} ${DEBUG}

It seems to works like this.

Thanks for your help

Eric

PBFWME
Eric SAUBIGNAC
Honored Contributor

Re: fuser on cifs

Late to close this post ... but it is never too late to make well !