s3/vfs: merge offline functionality into DOS attributes handling
authorRalph Boehme <slow@samba.org>
Sun, 11 Sep 2016 10:39:13 +0000 (12:39 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 11 Oct 2016 09:01:10 +0000 (11:01 +0200)
commit6f3b421c4a29e63e87a5987f54c925b8668f813c
tree743e4898c3ba3a9b2a72fc0efb3c9cb445707afb
parente56fa1f0e3fc42afe725c877d633333add65ec8e
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>
libcli/smb/smb_constants.h
source3/modules/vfs_default.c
source3/modules/vfs_gpfs.c
source3/modules/vfs_offline.c
source3/modules/vfs_tsmsm.c
source3/smbd/dosmode.c