mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
9ef33f5f5c
- to use a struct ntvfs_handle instead of a uint16_t fnum. (to make it independend from the frontend protocol) - the allocation of handles now is provided by the frontend (smbsrv_*) via callbacks and not by each backend module - this also makes sure that file handles are only passed to the ntvfs subsystem when the tcon and session matches, so modules can rely on this and need to check this. - this allows multiple modules in the ntvfs module chain to allocate file handles. This can be used for virtual files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"... - also this will make SMB2 with 128 bit file handles possible metze (This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
This module (ntvfs 'simple') provides a very, very simple posix backend. WARNING: All file access is done as user 'root'!!! Only use this module for testing, with only test data!!! For activating this module use: [testshare] path = /tmp/testshare nfvfs handler = simple