HTDAVLOCK(1)

NAME
htdavlock - inspect and remove locks from Apache mod_dav_fs

SYNOPSIS
htdavlock [-d -davlockdb] [-q] -l [file ...]
htdavlock [-H -url] [-p -prefix] [-d -davlockdb] file ...

DESCRIPTION
htdavlock -l can inespect the content of Apache mod_dav_fs lock database, as specified by the Apache [DavLockDB] option.

htdavlock -u can remove a lock, by sending a HTTP UNLOCK request to the server.

The following options are available:

-d davlockdb
    Specify the davlockdb database to operate on.

-l  Dump lock database content for given files, or for all files if none is specified.

-q  Used with -l performs a concise dump. See the eponymous section for details.

-u  Remove lock on given files by sending a HTTP UNLOCK request.

-H url
    Used with -u, gives the server where the HTTP UNLOCK request should be sent. The default is http://localhost.

-p prefix
    Used with -u, this removes prefix from the file part of the HTTP UNLOCK URL. The default is to not remove anything.

CONCISE DUMP
Using the -q flag, htdavlock outputs one line per entry in the database, Fields are:

Entry type
    I for Indirect locks (files under a locked directory), and D for direct locks.

Lock scope,
    x for eXclusvie, s for Shared, and - for indirect locks.

Lock type,
    w for Write lock, r for Read lock, and - for indirect locks.

Lock depth, an integer, or
    - for indirect locks.

authenticated user holding the lock, or
    - for indirect locks.

Date of lock expiry,
    * for locks with infinite timeout.

Hour of lock expiry,
    * for locks with infinite timeout.

path of locked file.

For indirect locks only
    -> followed by the associated direct lock.

EXIT STATUS
The htdavlock utility exits 0 on success, and 0 if an error occurs.