Skip to content

Allow to choose symlink and socket type

Pali Rohár linux-cifs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 5 repliesIn review

Changes in v2 from the cover letter

* Instead of new -o reparse= mount option is now a new -o symlink= mount option for choosing symlink type during creation, and new option -o nonativesocket for choosing socket type

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cifs: Add mount option -o symlink= for choosing symlink create typefs/smb/client/cifsfs.c fs/smb/client/cifsglob.h fs/smb/client/connect.c +5 more+214 -240 replies
2/7cifs: Add mount option -o reparse=nonefs/smb/client/cifsglob.h fs/smb/client/fs_context.c fs/smb/client/fs_context.h+11 -10 replies
3/7cifs: Add support for creating native Windows socketsfs/smb/client/cifsfs.c fs/smb/client/connect.c fs/smb/client/fs_context.c +2 more+43 -00 replies
4/7cifs: Add support for creating NFS-style symlinksfs/smb/client/reparse.c+39 -81 reply
5/7cifs: Improve guard for excluding $LXDEV xattrfs/smb/client/reparse.c+2 -20 replies
6/7cifs: Add support for creating WSL-style symlinksfs/smb/client/reparse.c+53 -120 replies
7/7cifs: Validate content of WSL reparse point buffersfs/smb/client/reparse.c+5 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/7] Allow to choose symlink and socket type

This patch series improves choosing reparse format when creating new special files.

Changes since v1:
* Instead of new -o reparse= mount option is now a new -o symlink= mount option for choosing symlink type during creation, and new option -o nonativesocket for choosing socket type

Pali Rohár (7):
cifs: Add mount option -o symlink= for choosing symlink create type
cifs: Add mount option -o reparse=none
cifs: Add support for creating native Windows sockets
cifs: Add support for creating NFS-style symlinks
cifs: Improve guard for excluding $LXDEV xattr
cifs: Add support for creating WSL-style symlinks
cifs: Validate content of WSL reparse point buffers

 fs/smb/client/cifsfs.c     |   4 +
 fs/smb/client/cifsglob.h   |  36 +++++++
 fs/smb/client/connect.c    |   4 +
 fs/smb/client/fs_context.c |  82 +++++++++++++++
 fs/smb/client/fs_context.h |  19 ++++
 fs/smb/client/link.c       |  60 ++++++++---
 fs/smb/client/reparse.c    | 201 +++++++++++++++++++++++++++++++------
 fs/smb/client/reparse.h    |   2 +
 8 files changed, 364 insertions(+), 44 deletions(-)
Signature · 1 line
2.20.1