[Samba] File locks db (manually removing locks)
jra at samba.org
Mon Apr 11 23:46:35 GMT 2005
On Wed, Apr 06, 2005 at 07:53:32AM -0400, Nathan Vidican wrote:
> After killing an smbd process, or occasionally after a process has died
> itself, there remains a lock as indicated in an smbstatus output.
> The process ID tied to the file lock in the db is no longer active, yet the
> db entry still exists. Is there a way to manually manipulate the file locks
> db? If not, will any of these entries prohibit another smbd process from
> handling the file which is indicated as locked? Or will a new process simply
> validate the running/not running status of the process id indicated in the
> db before proceeding itself?
Yes, that's what the smbd's do when finding an existing lock entry. They
send a kill 0 signal to the process to validate its existence.
More information about the samba