summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/smbsrv/smb_node.c
diff options
context:
space:
mode:
authorGordon Ross <gordon.ross@tintri.com>2020-11-23 21:37:26 -0500
committerGordon Ross <gordon.ross@tintri.com>2021-02-08 15:23:13 -0500
commita8e9db1c816399e66d096a343815a6e845a7a0cd (patch)
tree20412e2b0f0addf7b10543ee52cb67e75a8391dd /usr/src/uts/common/fs/smbsrv/smb_node.c
parentf74a127feb6111d3b6890ae374a142eda1fd4e3e (diff)
downloadillumos-joyent-a8e9db1c816399e66d096a343815a6e845a7a0cd.tar.gz
13299 File mtime changes twice, when file is modified using SMB server
Reviewed by: Florian Manschwetus <manschwetus@cs-software-gmbh.de> Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Dominik Hassler <hadfl@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/fs/smbsrv/smb_node.c')
-rw-r--r--usr/src/uts/common/fs/smbsrv/smb_node.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/usr/src/uts/common/fs/smbsrv/smb_node.c b/usr/src/uts/common/fs/smbsrv/smb_node.c
index e159bbc9e6..174f48f970 100644
--- a/usr/src/uts/common/fs/smbsrv/smb_node.c
+++ b/usr/src/uts/common/fs/smbsrv/smb_node.c
@@ -20,7 +20,7 @@
*/
/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright 2019 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2020 Tintri by DDN, Inc. All rights reserved.
*/
/*
* SMB Node State Machine
@@ -1544,14 +1544,6 @@ smb_node_setattr(smb_request_t *sr, smb_node_t *node,
}
/*
- * If we have an open file, and we set the size,
- * then set the "written" flag so that at close,
- * we can force an mtime update.
- */
- if (of != NULL && (attr->sa_mask & SMB_AT_SIZE) != 0)
- of->f_written = B_TRUE;
-
- /*
* When operating on an open file, some settable attributes
* become "sticky" in the open file object until close.
* (see above re. timestamps)