s3: Add the OneFS SMB_VFS_CREATE_FILE implementation
authorTim Prouty <tprouty@samba.org>
Tue, 9 Dec 2008 00:57:58 +0000 (16:57 -0800)
committerTim Prouty <tprouty@samba.org>
Tue, 9 Dec 2008 22:51:48 +0000 (14:51 -0800)
commite0711ffa526e22e3ffe483319ce5d7725d578647
tree7e5bac5563758ff614b8c45c33ee0f1e8467fbca
parent51e7f79b3b4ae0fa830ac176df5ba8229e14f32d
s3: Add the OneFS SMB_VFS_CREATE_FILE implementation

This is the first pass at extending the onefs vfs module to support
the CIFS-specific enhancements available on OneFS.  Most of this patch
is massaging the sama open path to work with ifs_createfile.

ifs_createfile is a CIFS-specific syscall for opening/files and
directories.  It adds support for:
- Full in-kernel access checks using a windows access_mask
- Cluster-coherent share mode locks
- Cluster-coherent oplocks
- Streams
- Setting security descriptors at create time
- Setting dos_attributes at create time

This patch does not implement the samba side of the streams support or
oplocks support.  Tests that expect oplocks to be granted or streams
to be supported will fail.  This will be remedied in upcoming patches.
source3/Makefile.in
source3/modules/onefs.h
source3/modules/onefs_acl.c
source3/modules/onefs_open.c
source3/modules/onefs_system.c [new file with mode: 0644]
source3/modules/vfs_onefs.c