smb/server: change notify support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest13 patches 3 repliesIn review
- v112 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- Patch #04 #07: fix LAST_WRITE and LAST_ACCESS notify event mappings.
- Patch #04 #08 #09 #11 #12: limit notify event memory per open.
- Add patch #13: support change notify for named streams.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | smb/server: move change notify handling into notify.cfs/ fs/ fs/ +1 more | +215 | 0 replies | |
| 2/13 | smb/server: add more validation for change notify requestsfs/ | +31 | 0 replies | |
| 3/13 | smb/server: add debug type for change notifyfs/ fs/ fs/ +1 more | +16 | 0 replies | |
| 4/13 | smb/server: support non-recursive directory change watchesfs/ fs/ fs/ | +232 | 1 reply | |
| 5/13 | smb/server: support recursive directory change watchesfs/ fs/ | +149 | 0 replies | |
| 6/13 | smb/server: keep notify watches on file handlesfs/ fs/ fs/ +1 more | +49 | 0 replies | |
| 7/13 | smb/server: save simple notify eventsfs/ fs/ | +197 | 0 replies | |
| 8/13 | smb/server: save old names for rename notify eventsfs/ fs/ | +88 | 0 replies | |
| 9/13 | smb/server: match rename notify eventsfs/ | +88 | 0 replies | |
| 10/13 | smb/server: encode notify eventsfs/ | +106 | 0 replies | |
| 11/13 | smb/server: send notify events to the clientfs/ fs/ | +210 | 0 replies | |
| 12/13 | smb/server: break directory leases before sending notify eventsfs/ fs/ fs/ | +72 | 0 replies | |
| 13/13 | smb/server: support change notify for named streamsfs/ fs/ fs/ | +192 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/13] smb/server: change notify support
From: ChenXiaoSong <[email protected]>
v1->v2:
- Patch #04 #07: fix LAST_WRITE and LAST_ACCESS notify event mappings.
- Patch #04 #08 #09 #11 #12: limit notify event memory per open.
- Add patch #13: support change notify for named streams.
v1: https://lore.kernel.org/linux-cifs/[email protected]/
TODO: The KUnit test cases are still being modified.
To test this feature, the following patches need to be applied to cifs-utils and kernel smb client:
- cifs-utils: https://chenxiaosong.com/lkml/cifs-utils-parse-notify
- kernel smb client: https://chenxiaosong.com/lkml/cifs-improve-notify
The complete kernel client and server patches are also available at the following link:
https://chenxiaosong.com/repo/linux/ksmbd-change-notify
ChenXiaoSong (13):
smb/server: move change notify handling into notify.c smb/server: add more validation for change notify requests smb/server: add debug type for change notify smb/server: support non-recursive directory change watches smb/server: support recursive directory change watches smb/server: keep notify watches on file handles smb/server: save simple notify events
smb/server: save old names for rename notify events smb/server: match rename notify events
smb/server: encode notify events
smb/server: send notify events to the client smb/server: break directory leases before sending notify events smb/server: support change notify for named streams
fs/smb/server/Kconfig | 1 + fs/smb/server/Makefile | 3 +- fs/smb/server/glob.h | 3 +- fs/smb/server/notify.c | 1415 +++++++++++++++++++++++++++++++++++++ fs/smb/server/notify.h | 80 +++ fs/smb/server/oplock.c | 40 ++ fs/smb/server/oplock.h | 1 + fs/smb/server/server.c | 2 +- fs/smb/server/smb2pdu.c | 112 +-- fs/smb/server/vfs.c | 67 +- fs/smb/server/vfs_cache.c | 3 + fs/smb/server/vfs_cache.h | 4 + 12 files changed, 1614 insertions(+), 117 deletions(-) create mode 100644 fs/smb/server/notify.c create mode 100644 fs/smb/server/notify.h
Signature · 1 line
2.55.0