This section explains how to use the
qq fs_list_locks
command.Description
List file locks held by clients.
Usage
qq fs_list_locks [-h] --protocol {nfs4,smb,nlm} --lock-type {share-mode,byte-range} [--path PATH | --id ID | --ip IP | --hostname HOSTNAME] [--snapshot SNAPSHOT] [--no-resolve] [--json] [--sort {file,client}]
Flags
Flag Name | Required | Description |
---|---|---|
--protocol
|
Yes | The protocol whose locks should be listed |
--lock-type
|
Yes | The type of lock to list. |
--path
|
No | File path |
--id
|
No | File ID |
--ip
|
No | List all locks held by the client with this IP address. |
--hostname
|
No | List all locks held by the client with this hostname. Only available for NLM locks. |
--snapshot
|
No | When a file is specified, list locks held on a specific snapshot. |
--no-resolve
|
No | Don't execute additional API calls to obtain file paths and client hostnames for results. |
--json
|
No | Print a raw JSON response. |
--sort
|
No | Sort results by this attribute. |