]> Git Repo - linux.git/commit
cifs: Remove intermediate object of failed create reparse call
authorPali Rohár <[email protected]>
Mon, 30 Sep 2024 20:25:10 +0000 (22:25 +0200)
committerSteve French <[email protected]>
Tue, 1 Oct 2024 03:14:05 +0000 (22:14 -0500)
commitc9432ad5e32f066875b1bf95939c363bc46d6a45
tree073bbf36a40fe237930966ff55ac13e982c779da
parent1eecd880a3ffb42e8cfbc4895998bdb178449b8b
cifs: Remove intermediate object of failed create reparse call

If CREATE was successful but SMB2_OP_SET_REPARSE failed then remove the
intermediate object created by CREATE. Otherwise empty object stay on the
server when reparse call failed.

This ensures that if the creating of special files is unsupported by the
server then no empty file stay on the server as a result of unsupported
operation.

Fixes: 102466f303ff ("smb: client: allow creating special files via reparse points")
Signed-off-by: Pali Rohár <[email protected]>
Acked-by: Paulo Alcantara (Red Hat) <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/smb/client/smb2inode.c
This page took 0.052475 seconds and 4 git commands to generate.