[Samba] exporting an FUSE base file system to windows

doug doug.duboulay at gmail.com
Tue Oct 23 06:52:36 GMT 2007


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.

Thanks
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