2 * Store streams in a separate subdirectory
4 * Copyright (C) Volker Lendecke, 2007
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
23 #define DBGC_CLASS DBGC_VFS
26 * Excerpt from a mail from tridge:
28 * Volker, what I'm thinking of is this:
29 * /mount-point/.streams/XX/YY/aaaa.bbbb/namedstream1
30 * /mount-point/.streams/XX/YY/aaaa.bbbb/namedstream2
32 * where XX/YY is a 2 level hash based on the fsid/inode. "aaaa.bbbb"
33 * is the fsid/inode. "namedstreamX" is a file named after the stream
37 static uint32_t hash_fn(DATA_BLOB key
)
39 uint32_t value
; /* Used to compute the hash value. */
40 uint32_t i
; /* Used to cycle through random values. */
42 /* Set the initial value from the key size. */
43 for (value
= 0x238F13AF * key
.length
, i
=0; i
< key
.length
; i
++)
44 value
= (value
+ (key
.data
[i
] << (i
*5 % 24)));
46 return (1103515243 * value
+ 12345);
50 * With the hashing scheme based on the inode we need to protect against
51 * streams showing up on files with re-used inodes. This can happen if we
52 * create a stream directory from within Samba, and a local process or NFS
53 * client deletes the file without deleting the streams directory. When the
54 * inode is re-used and the stream directory is still around, the streams in
55 * there would be show up as belonging to the new file.
57 * There are several workarounds for this, probably the easiest one is on
58 * systems which have a true birthtime stat element: When the file has a later
59 * birthtime than the streams directory, then we have to recreate the
62 * The other workaround is to somehow mark the file as generated by Samba with
63 * something that a NFS client would not do. The closest one is a special
64 * xattr value being set. On systems which do not support xattrs, it might be
65 * an option to put in a special ACL entry for a non-existing group.
68 #define SAMBA_XATTR_MARKER "user.SAMBA_STREAMS"
70 static bool file_is_valid(vfs_handle_struct
*handle
, const char *path
,
79 DEBUG(10, ("file_is_valid (%s) called\n", path
));
81 if (SMB_VFS_GETXATTR(handle
->conn
, path
, SAMBA_XATTR_MARKER
,
82 &buf
, sizeof(buf
)) != sizeof(buf
)) {
83 DEBUG(10, ("GETXATTR failed: %s\n", strerror(errno
)));
88 DEBUG(10, ("got wrong buffer content: '%c'\n", buf
));
95 static bool mark_file_valid(vfs_handle_struct
*handle
, const char *path
,
105 DEBUG(10, ("marking file %s as valid\n", path
));
107 ret
= SMB_VFS_SETXATTR(handle
->conn
, path
, SAMBA_XATTR_MARKER
,
108 &buf
, sizeof(buf
), 0);
111 DEBUG(10, ("SETXATTR failed: %s\n", strerror(errno
)));
119 * Given an smb_filename, determine the stream directory using the file's
122 static char *stream_dir(vfs_handle_struct
*handle
,
123 const struct smb_filename
*smb_fname
,
124 const SMB_STRUCT_STAT
*base_sbuf
, bool create_it
)
127 struct smb_filename
*smb_fname_hash
= NULL
;
129 SMB_STRUCT_STAT base_sbuf_tmp
;
130 uint8_t first
, second
;
139 check_valid
= lp_parm_bool(SNUM(handle
->conn
),
140 "streams_depot", "check_valid", true);
142 tmp
= talloc_asprintf(talloc_tos(), "%s/.streams", handle
->conn
->connectpath
);
149 rootdir
= lp_parm_const_string(
150 SNUM(handle
->conn
), "streams_depot", "directory",
153 /* Stat the base file if it hasn't already been done. */
154 if (base_sbuf
== NULL
) {
155 struct smb_filename
*smb_fname_base
= NULL
;
157 status
= create_synthetic_smb_fname(talloc_tos(),
158 smb_fname
->base_name
,
161 if (!NT_STATUS_IS_OK(status
)) {
162 errno
= map_errno_from_nt_status(status
);
165 if (SMB_VFS_NEXT_STAT(handle
, smb_fname_base
) == -1) {
166 TALLOC_FREE(smb_fname_base
);
169 base_sbuf_tmp
= smb_fname_base
->st
;
170 TALLOC_FREE(smb_fname_base
);
172 base_sbuf_tmp
= *base_sbuf
;
175 id
= SMB_VFS_FILE_ID_CREATE(handle
->conn
, &base_sbuf_tmp
);
177 push_file_id_16((char *)id_buf
, &id
);
179 hash
= hash_fn(data_blob_const(id_buf
, sizeof(id_buf
)));
182 second
= (hash
>> 8) & 0xff;
184 id_hex
= hex_encode_talloc(talloc_tos(), id_buf
, sizeof(id_buf
));
186 if (id_hex
== NULL
) {
191 result
= talloc_asprintf(talloc_tos(), "%s/%2.2X/%2.2X/%s", rootdir
,
192 first
, second
, id_hex
);
196 if (result
== NULL
) {
201 status
= create_synthetic_smb_fname(talloc_tos(), result
, NULL
, NULL
,
203 if (!NT_STATUS_IS_OK(status
)) {
204 errno
= map_errno_from_nt_status(status
);
208 if (SMB_VFS_NEXT_STAT(handle
, smb_fname_hash
) == 0) {
209 struct smb_filename
*smb_fname_new
= NULL
;
212 if (!S_ISDIR(smb_fname_hash
->st
.st_ex_mode
)) {
217 if (file_is_valid(handle
, smb_fname
->base_name
, check_valid
)) {
222 * Someone has recreated a file under an existing inode
223 * without deleting the streams directory. For now, just move
228 newname
= talloc_asprintf(talloc_tos(), "lost-%lu", random());
229 if (newname
== NULL
) {
234 status
= create_synthetic_smb_fname(talloc_tos(), newname
,
237 TALLOC_FREE(newname
);
238 if (!NT_STATUS_IS_OK(status
)) {
239 errno
= map_errno_from_nt_status(status
);
243 if (SMB_VFS_NEXT_RENAME(handle
, smb_fname_hash
,
244 smb_fname_new
) == -1) {
245 TALLOC_FREE(smb_fname_new
);
246 if ((errno
== EEXIST
) || (errno
== ENOTEMPTY
)) {
252 TALLOC_FREE(smb_fname_new
);
260 if ((SMB_VFS_NEXT_MKDIR(handle
, rootdir
, 0755) != 0)
261 && (errno
!= EEXIST
)) {
265 tmp
= talloc_asprintf(result
, "%s/%2.2X", rootdir
, first
);
271 if ((SMB_VFS_NEXT_MKDIR(handle
, tmp
, 0755) != 0)
272 && (errno
!= EEXIST
)) {
278 tmp
= talloc_asprintf(result
, "%s/%2.2X/%2.2X", rootdir
, first
,
285 if ((SMB_VFS_NEXT_MKDIR(handle
, tmp
, 0755) != 0)
286 && (errno
!= EEXIST
)) {
292 if ((SMB_VFS_NEXT_MKDIR(handle
, result
, 0755) != 0)
293 && (errno
!= EEXIST
)) {
297 if (!mark_file_valid(handle
, smb_fname
->base_name
, check_valid
)) {
301 TALLOC_FREE(smb_fname_hash
);
305 TALLOC_FREE(smb_fname_hash
);
310 * Given a stream name, populate smb_fname_out with the actual location of the
313 static NTSTATUS
stream_smb_fname(vfs_handle_struct
*handle
,
314 const struct smb_filename
*smb_fname
,
315 struct smb_filename
**smb_fname_out
,
318 char *dirname
, *stream_fname
;
322 *smb_fname_out
= NULL
;
324 dirname
= stream_dir(handle
, smb_fname
, NULL
, create_dir
);
326 if (dirname
== NULL
) {
327 status
= map_nt_error_from_unix(errno
);
331 stype
= strchr_m(smb_fname
->stream_name
+ 1, ':');
333 stream_fname
= talloc_asprintf(talloc_tos(), "%s/%s", dirname
,
334 smb_fname
->stream_name
);
336 if (stream_fname
== NULL
) {
337 status
= NT_STATUS_NO_MEMORY
;
342 /* Append an explicit stream type if one wasn't specified. */
343 stream_fname
= talloc_asprintf(talloc_tos(), "%s:$DATA",
345 if (stream_fname
== NULL
) {
346 status
= NT_STATUS_NO_MEMORY
;
350 /* Normalize the stream type to upercase. */
351 strupper_m(strrchr_m(stream_fname
, ':') + 1);
354 DEBUG(10, ("stream filename = %s\n", stream_fname
));
356 /* Create an smb_filename with stream_name == NULL. */
357 status
= create_synthetic_smb_fname(talloc_tos(), stream_fname
, NULL
,
358 NULL
, smb_fname_out
);
359 if (!NT_STATUS_IS_OK(status
)) {
366 DEBUG(5, ("stream_name failed: %s\n", strerror(errno
)));
367 TALLOC_FREE(*smb_fname_out
);
371 static NTSTATUS
walk_streams(vfs_handle_struct
*handle
,
372 struct smb_filename
*smb_fname_base
,
374 bool (*fn
)(const char *dirname
,
380 SMB_STRUCT_DIR
*dirhandle
= NULL
;
383 dirname
= stream_dir(handle
, smb_fname_base
, &smb_fname_base
->st
,
386 if (dirname
== NULL
) {
387 if (errno
== ENOENT
) {
393 return map_nt_error_from_unix(errno
);
396 DEBUG(10, ("walk_streams: dirname=%s\n", dirname
));
398 dirhandle
= SMB_VFS_NEXT_OPENDIR(handle
, dirname
, NULL
, 0);
400 if (dirhandle
== NULL
) {
401 TALLOC_FREE(dirname
);
402 return map_nt_error_from_unix(errno
);
405 while ((dirent
= vfs_readdirname(handle
->conn
, dirhandle
, NULL
)) != NULL
) {
407 if (ISDOT(dirent
) || ISDOTDOT(dirent
)) {
411 DEBUG(10, ("walk_streams: dirent=%s\n", dirent
));
413 if (!fn(dirname
, dirent
, private_data
)) {
418 SMB_VFS_NEXT_CLOSEDIR(handle
, dirhandle
);
420 if (pdirname
!= NULL
) {
424 TALLOC_FREE(dirname
);
431 * Helper to stat/lstat the base file of an smb_fname. This will actually
432 * fills in the stat struct in smb_filename.
434 static int streams_depot_stat_base(vfs_handle_struct
*handle
,
435 struct smb_filename
*smb_fname
,
438 char *tmp_stream_name
;
441 tmp_stream_name
= smb_fname
->stream_name
;
442 smb_fname
->stream_name
= NULL
;
444 result
= SMB_VFS_NEXT_STAT(handle
, smb_fname
);
446 result
= SMB_VFS_NEXT_LSTAT(handle
, smb_fname
);
448 smb_fname
->stream_name
= tmp_stream_name
;
452 static int streams_depot_stat(vfs_handle_struct
*handle
,
453 struct smb_filename
*smb_fname
)
455 struct smb_filename
*smb_fname_stream
= NULL
;
459 DEBUG(10, ("streams_depot_stat called for [%s]\n",
460 smb_fname_str_dbg(smb_fname
)));
462 if (!is_ntfs_stream_smb_fname(smb_fname
)) {
463 return SMB_VFS_NEXT_STAT(handle
, smb_fname
);
466 /* If the default stream is requested, just stat the base file. */
467 if (is_ntfs_default_stream_smb_fname(smb_fname
)) {
468 return streams_depot_stat_base(handle
, smb_fname
, true);
471 /* Stat the actual stream now. */
472 status
= stream_smb_fname(handle
, smb_fname
, &smb_fname_stream
,
474 if (!NT_STATUS_IS_OK(status
)) {
476 errno
= map_errno_from_nt_status(status
);
480 ret
= SMB_VFS_NEXT_STAT(handle
, smb_fname_stream
);
482 /* Update the original smb_fname with the stat info. */
483 smb_fname
->st
= smb_fname_stream
->st
;
485 TALLOC_FREE(smb_fname_stream
);
491 static int streams_depot_lstat(vfs_handle_struct
*handle
,
492 struct smb_filename
*smb_fname
)
494 struct smb_filename
*smb_fname_stream
= NULL
;
498 DEBUG(10, ("streams_depot_lstat called for [%s]\n",
499 smb_fname_str_dbg(smb_fname
)));
501 if (!is_ntfs_stream_smb_fname(smb_fname
)) {
502 return SMB_VFS_NEXT_LSTAT(handle
, smb_fname
);
505 /* If the default stream is requested, just stat the base file. */
506 if (is_ntfs_default_stream_smb_fname(smb_fname
)) {
507 return streams_depot_stat_base(handle
, smb_fname
, false);
510 /* Stat the actual stream now. */
511 status
= stream_smb_fname(handle
, smb_fname
, &smb_fname_stream
,
513 if (!NT_STATUS_IS_OK(status
)) {
515 errno
= map_errno_from_nt_status(status
);
519 ret
= SMB_VFS_NEXT_LSTAT(handle
, smb_fname_stream
);
522 TALLOC_FREE(smb_fname_stream
);
526 static int streams_depot_open(vfs_handle_struct
*handle
,
527 struct smb_filename
*smb_fname
,
528 files_struct
*fsp
, int flags
, mode_t mode
)
530 struct smb_filename
*smb_fname_stream
= NULL
;
531 struct smb_filename
*smb_fname_base
= NULL
;
535 if (!is_ntfs_stream_smb_fname(smb_fname
)) {
536 return SMB_VFS_NEXT_OPEN(handle
, smb_fname
, fsp
, flags
, mode
);
539 /* If the default stream is requested, just open the base file. */
540 if (is_ntfs_default_stream_smb_fname(smb_fname
)) {
541 char *tmp_stream_name
;
543 tmp_stream_name
= smb_fname
->stream_name
;
544 smb_fname
->stream_name
= NULL
;
545 ret
= SMB_VFS_NEXT_OPEN(handle
, smb_fname
, fsp
, flags
, mode
);
546 smb_fname
->stream_name
= tmp_stream_name
;
551 /* Ensure the base file still exists. */
552 status
= create_synthetic_smb_fname(talloc_tos(),
553 smb_fname
->base_name
,
556 if (!NT_STATUS_IS_OK(status
)) {
558 errno
= map_errno_from_nt_status(status
);
562 ret
= SMB_VFS_NEXT_STAT(handle
, smb_fname_base
);
567 /* Determine the stream name, and then open it. */
568 status
= stream_smb_fname(handle
, smb_fname
, &smb_fname_stream
, true);
569 if (!NT_STATUS_IS_OK(status
)) {
571 errno
= map_errno_from_nt_status(status
);
575 ret
= SMB_VFS_NEXT_OPEN(handle
, smb_fname_stream
, fsp
, flags
, mode
);
578 TALLOC_FREE(smb_fname_stream
);
579 TALLOC_FREE(smb_fname_base
);
583 static int streams_depot_unlink(vfs_handle_struct
*handle
,
584 const struct smb_filename
*smb_fname
)
586 struct smb_filename
*smb_fname_base
= NULL
;
590 DEBUG(10, ("streams_depot_unlink called for %s\n",
591 smb_fname_str_dbg(smb_fname
)));
593 /* If there is a valid stream, just unlink the stream and return. */
594 if (is_ntfs_stream_smb_fname(smb_fname
) &&
595 !is_ntfs_default_stream_smb_fname(smb_fname
)) {
596 struct smb_filename
*smb_fname_stream
= NULL
;
598 status
= stream_smb_fname(handle
, smb_fname
, &smb_fname_stream
,
600 if (!NT_STATUS_IS_OK(status
)) {
601 errno
= map_errno_from_nt_status(status
);
605 ret
= SMB_VFS_NEXT_UNLINK(handle
, smb_fname_stream
);
607 TALLOC_FREE(smb_fname_stream
);
612 * We potentially need to delete the per-inode streams directory
615 status
= create_synthetic_smb_fname(talloc_tos(), smb_fname
->base_name
,
616 NULL
, NULL
, &smb_fname_base
);
617 if (!NT_STATUS_IS_OK(status
)) {
618 errno
= map_errno_from_nt_status(status
);
622 if (lp_posix_pathnames()) {
623 ret
= SMB_VFS_NEXT_LSTAT(handle
, smb_fname_base
);
625 ret
= SMB_VFS_NEXT_STAT(handle
, smb_fname_base
);
629 TALLOC_FREE(smb_fname_base
);
633 if (smb_fname_base
->st
.st_ex_nlink
== 1) {
634 char *dirname
= stream_dir(handle
, smb_fname_base
,
635 &smb_fname_base
->st
, false);
637 if (dirname
!= NULL
) {
638 SMB_VFS_NEXT_RMDIR(handle
, dirname
);
640 TALLOC_FREE(dirname
);
643 ret
= SMB_VFS_NEXT_UNLINK(handle
, smb_fname
);
645 TALLOC_FREE(smb_fname_base
);
649 static int streams_depot_rename(vfs_handle_struct
*handle
,
650 const struct smb_filename
*smb_fname_src
,
651 const struct smb_filename
*smb_fname_dst
)
653 struct smb_filename
*smb_fname_src_stream
= NULL
;
654 struct smb_filename
*smb_fname_dst_stream
= NULL
;
655 struct smb_filename
*smb_fname_dst_mod
= NULL
;
656 bool src_is_stream
, dst_is_stream
;
660 DEBUG(10, ("streams_depot_rename called for %s => %s\n",
661 smb_fname_str_dbg(smb_fname_src
),
662 smb_fname_str_dbg(smb_fname_dst
)));
664 src_is_stream
= is_ntfs_stream_smb_fname(smb_fname_src
);
665 dst_is_stream
= is_ntfs_stream_smb_fname(smb_fname_dst
);
667 if (!src_is_stream
&& !dst_is_stream
) {
668 return SMB_VFS_NEXT_RENAME(handle
, smb_fname_src
,
672 /* for now don't allow renames from or to the default stream */
673 if (is_ntfs_default_stream_smb_fname(smb_fname_src
) ||
674 is_ntfs_default_stream_smb_fname(smb_fname_dst
)) {
679 status
= stream_smb_fname(handle
, smb_fname_src
, &smb_fname_src_stream
,
681 if (!NT_STATUS_IS_OK(status
)) {
682 errno
= map_errno_from_nt_status(status
);
687 * Handle passing in a stream name without the base file. This is
688 * exercised by the NTRENAME streams rename path.
690 if (StrCaseCmp(smb_fname_dst
->base_name
, "./") == 0) {
691 status
= create_synthetic_smb_fname(talloc_tos(),
692 smb_fname_src
->base_name
,
693 smb_fname_dst
->stream_name
,
694 NULL
, &smb_fname_dst_mod
);
695 if (!NT_STATUS_IS_OK(status
)) {
696 errno
= map_errno_from_nt_status(status
);
701 status
= stream_smb_fname(handle
, (smb_fname_dst_mod
?
702 smb_fname_dst_mod
: smb_fname_dst
),
703 &smb_fname_dst_stream
, false);
704 if (!NT_STATUS_IS_OK(status
)) {
705 errno
= map_errno_from_nt_status(status
);
709 ret
= SMB_VFS_NEXT_RENAME(handle
, smb_fname_src_stream
,
710 smb_fname_dst_stream
);
713 TALLOC_FREE(smb_fname_src_stream
);
714 TALLOC_FREE(smb_fname_dst_stream
);
715 TALLOC_FREE(smb_fname_dst_mod
);
719 static bool add_one_stream(TALLOC_CTX
*mem_ctx
, unsigned int *num_streams
,
720 struct stream_struct
**streams
,
721 const char *name
, SMB_OFF_T size
,
722 SMB_OFF_T alloc_size
)
724 struct stream_struct
*tmp
;
726 tmp
= TALLOC_REALLOC_ARRAY(mem_ctx
, *streams
, struct stream_struct
,
732 tmp
[*num_streams
].name
= talloc_strdup(tmp
, name
);
733 if (tmp
[*num_streams
].name
== NULL
) {
737 tmp
[*num_streams
].size
= size
;
738 tmp
[*num_streams
].alloc_size
= alloc_size
;
745 struct streaminfo_state
{
747 vfs_handle_struct
*handle
;
748 unsigned int num_streams
;
749 struct stream_struct
*streams
;
753 static bool collect_one_stream(const char *dirname
,
757 struct streaminfo_state
*state
=
758 (struct streaminfo_state
*)private_data
;
759 struct smb_filename
*smb_fname
= NULL
;
764 sname
= talloc_asprintf(talloc_tos(), "%s/%s", dirname
, dirent
);
766 state
->status
= NT_STATUS_NO_MEMORY
;
771 status
= create_synthetic_smb_fname(talloc_tos(), sname
, NULL
,
773 if (!NT_STATUS_IS_OK(status
)) {
774 state
->status
= status
;
779 if (SMB_VFS_NEXT_STAT(state
->handle
, smb_fname
) == -1) {
780 DEBUG(10, ("Could not stat %s: %s\n", sname
,
786 if (!add_one_stream(state
->mem_ctx
,
787 &state
->num_streams
, &state
->streams
,
788 dirent
, smb_fname
->st
.st_ex_size
,
789 SMB_VFS_GET_ALLOC_SIZE(state
->handle
->conn
, NULL
,
791 state
->status
= NT_STATUS_NO_MEMORY
;
799 TALLOC_FREE(smb_fname
);
803 static NTSTATUS
streams_depot_streaminfo(vfs_handle_struct
*handle
,
804 struct files_struct
*fsp
,
807 unsigned int *pnum_streams
,
808 struct stream_struct
**pstreams
)
810 struct smb_filename
*smb_fname_base
= NULL
;
813 struct streaminfo_state state
;
815 status
= create_synthetic_smb_fname(talloc_tos(), fname
, NULL
, NULL
,
817 if (!NT_STATUS_IS_OK(status
)) {
821 if ((fsp
!= NULL
) && (fsp
->fh
->fd
!= -1)) {
822 ret
= SMB_VFS_NEXT_FSTAT(handle
, fsp
, &smb_fname_base
->st
);
825 if (lp_posix_pathnames()) {
826 ret
= SMB_VFS_NEXT_LSTAT(handle
, smb_fname_base
);
828 ret
= SMB_VFS_NEXT_STAT(handle
, smb_fname_base
);
833 status
= map_nt_error_from_unix(errno
);
837 state
.streams
= NULL
;
838 state
.num_streams
= 0;
840 if (!S_ISDIR(smb_fname_base
->st
.st_ex_mode
)) {
841 if (!add_one_stream(mem_ctx
,
842 &state
.num_streams
, &state
.streams
,
843 "::$DATA", smb_fname_base
->st
.st_ex_size
,
844 SMB_VFS_GET_ALLOC_SIZE(handle
->conn
, fsp
,
845 &smb_fname_base
->st
))) {
846 status
= NT_STATUS_NO_MEMORY
;
851 state
.mem_ctx
= mem_ctx
;
852 state
.handle
= handle
;
853 state
.status
= NT_STATUS_OK
;
855 status
= walk_streams(handle
, smb_fname_base
, NULL
, collect_one_stream
,
858 if (!NT_STATUS_IS_OK(status
)) {
859 TALLOC_FREE(state
.streams
);
863 if (!NT_STATUS_IS_OK(state
.status
)) {
864 TALLOC_FREE(state
.streams
);
865 status
= state
.status
;
869 *pnum_streams
= state
.num_streams
;
870 *pstreams
= state
.streams
;
871 status
= NT_STATUS_OK
;
874 TALLOC_FREE(smb_fname_base
);
878 static uint32_t streams_depot_fs_capabilities(struct vfs_handle_struct
*handle
)
880 return SMB_VFS_NEXT_FS_CAPABILITIES(handle
) | FILE_NAMED_STREAMS
;
883 static struct vfs_fn_pointers vfs_streams_depot_fns
= {
884 .fs_capabilities
= streams_depot_fs_capabilities
,
885 .open
= streams_depot_open
,
886 .stat
= streams_depot_stat
,
887 .lstat
= streams_depot_lstat
,
888 .unlink
= streams_depot_unlink
,
889 .rename
= streams_depot_rename
,
890 .streaminfo
= streams_depot_streaminfo
,
893 NTSTATUS
vfs_streams_depot_init(void);
894 NTSTATUS
vfs_streams_depot_init(void)
896 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION
, "streams_depot",
897 &vfs_streams_depot_fns
);