[Samba] exporting an FUSE base file system to windows

doug doug.duboulay at gmail.com
Tue Nov 13 04:17:06 GMT 2007


Hi, 
 I still need help to try and figure this out.


On Tuesday 23 October 2007 16:52, doug wrote:
> Hi,
>
> What I wanted to do was to export an FUSE based filesystem mounted
> on linux to a windows box using samba.
> I can browse and navigate the fuse filesystem without problems
> on the linux box. With smbd running I can even navigate the filesystem
> using smbclient.
>
> Unfortunately when I try to access the exported file system from WinNT
> the mountpoint of the filesystem shows up as a zero size file rather than
> as a directory/folder. If I unmount the fuse filesystem the mountpoint
> becomes accessible again as a folder (but of course this is useless to me).
>
> I am hoping that from the following smbd debug messages someone may be
> able to tell me why. The mountpoint is a directory named srb_data in an
> exported home directory though it seems to be treated as a
> non-existant file. Pointers as to why it would be treated that way
> would be very helpful.

When I do a directory listing on the windows SMB client my smbd server
in debug mode always seems to return:
 
[2007/11/13 15:00:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found srb_data/srb fname=srb
[2007/11/13 15:00:05, 10] smbd/trans2.c:get_lanman2_dir_entry(1310)
  get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO
[2007/11/13 15:00:05, 8] smbd/trans2.c:get_lanman2_dir_entry(1079)
  get_lanman2_dir_entry:readdir on dirptr 0x8d867d8 now at offset -1
[2007/11/13 15:00:05, 5] smbd/trans2.c:call_trans2findfirst(1798)
  call_trans2findfirst - (2) closing dptr_num 256
[2007/11/13 15:00:05, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256

i.e. offset = -1 for my fuse mounted file system. 
(its also always last in the file list for some reason)
(and I changed the fuse mount point from my previous email) 
maybe those two things are correlated, or could the offset=-1 
be a pointer to some bug in my fuse based virtual filesystem?

thanks for any guidance

Doug




>
> [2007/10/02 16:22:12, 10] lib/util.c:dump_data(2080)
>   [000] 00 5C 00 73 00 72 00 62  00 5F 00 64 00 61 00 74  .\.s.r.b ._.d.a.t
>   [010] 00 61 00 00 00                                    .a...
> [2007/10/02 16:22:12, 3] smbd/process.c:switch_message(993)
>   switch message SMBntcreateX (pid 3791) conn 0x8f998a8
> [2007/10/02 16:22:12, 4] smbd/uid.c:change_to_user(222)
>   change_to_user: Skipping user change - already user
> [2007/10/02 16:22:12, 10] smbd/nttrans.c:reply_ntcreate_and_X(506)
>   reply_ntcreateX: flags = 0x16, access_mask = 0x20189 file_attributes =
> 0x0, share_access = 0x3, create_disposition = 0x1 create_options = 0x40
> root_dir_fid = 0x0
> [2007/10/02 16:22:12, 5] smbd/filename.c:unix_convert(108)
>   unix_convert called on file "srb_data"
> [2007/10/02 16:22:12, 10] smbd/statcache.c:stat_cache_lookup(248)
>   stat_cache_lookup: lookup succeeded for name [SRB_DATA] -> [srb_data]
> [2007/10/02 16:22:12, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(srb_data) returning 0744
> [2007/10/02 16:22:12, 10] smbd/open.c:open_file_ntcreate(1091)
>   open_file_ntcreate: fname=srb_data, dos_attrs=0x0 access_mask=0x20189
> share_access=0x3 create_disposition = 0x1 create_options=0x40 unix
> mode=0744 oplock_request=3
> [2007/10/02 16:22:12, 5] smbd/open.c:open_file_ntcreate(1178)
>   open_file_ntcreate: FILE_OPEN requested for file srb_data and file
> doesn't exist.
> [2007/10/02 16:22:12, 10] smbd/trans2.c:set_bad_path_error(2623)
>   set_bad_path_error: err = 2 bad_path = 0
> [2007/10/02 16:22:12, 3] smbd/error.c:error_packet(146)
>   error packet at smbd/trans2.c(2629) cmd=162 (SMBntcreateX)
> NT_STATUS_OBJECT_NAME_NOT_FOUND
> [2007/10/02 16:22:12, 5] lib/util.c:show_msg(476)
> [2007/10/02 16:22:12, 5] lib/util.c:show_msg(486)
>
>
> Any pointers would be most helpful.


More information about the samba mailing list