summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2016-09-11 12:39:13 +0200
committerVolker Lendecke <vl@samba.org>2016-10-11 11:01:10 +0200
commit6f3b421c4a29e63e87a5987f54c925b8668f813c (patch)
tree743e4898c3ba3a9b2a72fc0efb3c9cb445707afb /libcli
parente56fa1f0e3fc42afe725c877d633333add65ec8e (diff)
downloadsamba-6f3b421c4a29e63e87a5987f54c925b8668f813c.tar.gz
s3/vfs: merge offline functionality into DOS attributes handling
The offline VFS functions predate the SMB_VFS_{GET|SET}_DOS_ATTRIBUTES() functions, now that we have these, we can use them for the offline attribute as well. The primary reason for this is: performance. Merging both functions has the benefit that in VFS modules that use same backing store bits for both offline attribute and DOS attributes (like gpfs), we avoid calling the backing store twice in dos_mode() and file_set_dosmode(). This commit modifies all existing users of the offline attribute to adapt to the change, the next commit will then remove the obsolete offline functions. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smb_constants.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h
index b963c73c5d3..47b5629743b 100644
--- a/libcli/smb/smb_constants.h
+++ b/libcli/smb/smb_constants.h
@@ -341,7 +341,8 @@ enum csc_policy {
FILE_ATTRIBUTE_HIDDEN|\
FILE_ATTRIBUTE_SYSTEM|\
FILE_ATTRIBUTE_DIRECTORY|\
- FILE_ATTRIBUTE_ARCHIVE)
+ FILE_ATTRIBUTE_ARCHIVE|\
+ FILE_ATTRIBUTE_OFFLINE)
/* File type flags */
#define FILE_TYPE_DISK 0