Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* nfs file locking?
@ 1998-09-28  4:00 Mario Zimmermann
  1998-10-06  4:00 ` Eric Werme - replace nospam with werme
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Zimmermann @ 1998-09-28  4:00 UTC (permalink / raw)


Hello

we use nfs-file-locking.
Is there a way figure out, who has a lock on a file?
OS: Digital Unix 4.0d

Best regards

Mario

e-mail: mario.zimmermann@pcm.bosch.de



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nfs file locking?
  1998-09-28  4:00 nfs file locking? Mario Zimmermann
@ 1998-10-06  4:00 ` Eric Werme - replace nospam with werme
  1998-10-06  4:00   ` Serguei Patchkovskii
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Werme - replace nospam with werme @ 1998-10-06  4:00 UTC (permalink / raw)


Mario Zimmermann <mzi2sn@sn0967.sn.bosch.de> writes:

>we use nfs-file-locking.
>Is there a way figure out, who has a lock on a file?
>OS: Digital Unix 4.0d

No.

Sorry.

	-Ric Werme
--
<>    Eric (Ric) Werme     <> The above is unlikely to contain   <>
<>    ROT-13 addresses:    <> official claims or policies of     <>
<>   <jrezr@mx3.qrp.pbz>   <> Compaq Computer Corp.              <>
<> <jrezr@plorecbegny.arg> <>  http://www.cyberportal.net/werme  <>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nfs file locking?
  1998-10-06  4:00 ` Eric Werme - replace nospam with werme
@ 1998-10-06  4:00   ` Serguei Patchkovskii
  0 siblings, 0 replies; 3+ messages in thread
From: Serguei Patchkovskii @ 1998-10-06  4:00 UTC (permalink / raw)


Eric Werme - replace nospam with werme (nospam@zk3.dec.com) wrote:
: Mario Zimmermann <mzi2sn@sn0967.sn.bosch.de> writes:

: >we use nfs-file-locking.
: >Is there a way figure out, who has a lock on a file?
: >OS: Digital Unix 4.0d

: No.

Wrong. There are several ways of figuring out who has an NFS lock
on a file. You can either walk kernel lock tables, or you can use
the F_GETLK/F_RGETLK fcntl() interface. The latter case is trivial,
and Vic Abell's lslk will do the first one for you.

In either case, you'll get the PID of the process holding the lock,
and may get the IP number of the machine the said process is
running on. Given this, figuring out whatever else you may need
is trivial.

lslk is available at:

vic.cc.purdue.edu:pub/tools/unix/lslk

Cheers,

/Serge.P



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-10-06  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-28  4:00 nfs file locking? Mario Zimmermann
1998-10-06  4:00 ` Eric Werme - replace nospam with werme
1998-10-06  4:00   ` Serguei Patchkovskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox