Skip to content

smbinfo: add options to notify subcommand

ChenXiaoSong linux-cifs 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3smbinfo: show directory in notify helpsmbinfo smbinfo.rst+7 -30 replies
2/3smbinfo: make the notify completion filter configurablesmbinfo smbinfo.rst+58 -50 replies
3/3smbinfo: make notify subtree watching configurablesmbinfo smbinfo.rst+21 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH cifs-utils 0/3] smbinfo: add options to notify subcommand

From: ChenXiaoSong <[email protected]>

Add optional watch_tree and completion_filter arguments to make debugging easier.

Example:

./smbinfo notify -h
usage: smbinfo notify [-h] directory [completion_filter] [watch_tree]

positional arguments:

    directory          Directory to watch for changes
    completion_filter  Filter mask from 0 to 0xFFF; supports '|' (quote expressions in the shell; default: 0xFFF)
    watch_tree         Watch subdirectories: True/1 or False/0 (default: True)

options:
-h, --help show this help message and exit

completion_filter flags:

    0x00000001  FILE_NOTIFY_CHANGE_FILE_NAME
    0x00000002  FILE_NOTIFY_CHANGE_DIR_NAME
    0x00000003  FILE_NOTIFY_CHANGE_NAME
    0x00000004  FILE_NOTIFY_CHANGE_ATTRIBUTES
    0x00000008  FILE_NOTIFY_CHANGE_SIZE
    0x00000010  FILE_NOTIFY_CHANGE_LAST_WRITE
    0x00000020  FILE_NOTIFY_CHANGE_LAST_ACCESS
    0x00000040  FILE_NOTIFY_CHANGE_CREATION
    0x00000080  FILE_NOTIFY_CHANGE_EA
    0x00000100  FILE_NOTIFY_CHANGE_SECURITY
    0x00000200  FILE_NOTIFY_CHANGE_STREAM_NAME
    0x00000400  FILE_NOTIFY_CHANGE_STREAM_SIZE
    0x00000800  FILE_NOTIFY_CHANGE_STREAM_WRITE

Example: smbinfo notify /mnt '0x1|0x2' 0

ChenXiaoSong (3):
smbinfo: show directory in notify help
smbinfo: make the notify completion filter configurable
smbinfo: make notify subtree watching configurable

 smbinfo     | 68 +++++++++++++++++++++++++++++++++++++++++++++++------
 smbinfo.rst | 20 +++++++++++++++-
 2 files changed, 80 insertions(+), 8 deletions(-)
Signature · 1 line
2.53.0