[Samba] File locks db (manually removing locks)

Jeremy Allison
Mon, 11 Apr 2005 23:46:50 -0000

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.

Jeremy.