2010-09-28 00:26:56     SAMBA or SMBFS?

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-09-28 00:26:56     SAMBA or SMBFS?

Wojtek Skulski (UNITED STATES)

Message: 93889   

 

Hi:

 

I need to share files between the Blackfin board and a Windows machine. I read the recent  threads

 

  blackfin.uclinux.org/gf/forummessage/91357

  blackfin.uclinux.org/gf/forummessage/93388

I also read the Wiki page https://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:smb

 

Unfortunately, the Wiki page is not consistent with what I am seeing in the menuconfig "uClinux Distribution Configuration" (3rd menuconfig). This is what I am actually seeing (my selections are marked):

 

      --- SAMBA  

      [*] samba

      [*]   smbd

      [*]   nmbd 

      [*]   smbmount 

      [*]   smbumount

      [*]   mount.cifs

      [*]   umount.cifs 

      [*]   uses shared library  

        --- SMBFS

      [*] smbmount 

      [*] smbumount

 

It is not explained in menuconfig Help what is the difference between SAMBA and SMBFS, why there are identical names under SAMBA and SMBFS, and which ones to select. The Wiki page only shows the upper SAMBA, but it does not mention that there is an identical-looking SMBFS just underneath.

Which version of "smbmount" and "smbumount" I should select? The discussion threads mention SMBFS, while the Wiki advises SAMBA. So I am confused, which one is the correct one. And why two choices?

 

Thank you -- Wojtek

QuoteReplyEditDelete

 

 

2010-09-28 00:50:25     Re: SAMBA or SMBFS?

Mike Frysinger (UNITED STATES)

Message: 93890   

 

complain to upstream about the duplication

 

the utils under SMBFS are really old versions.  the SAMBA ones are newer.

 

none of the threads you quoted are talking about SMBFS as it appears under the uclinux-dist menuconfiguration.  they're talking about the filesystems the kernel supports ("smbfs" and "cifs").

QuoteReplyEditDelete

 

 

2010-09-28 01:05:08     Re: SAMBA or SMBFS?

Wojtek Skulski (UNITED STATES)

Message: 93891   

 

Mike:

 

thank you for the clarification. The newer thread actually explicitely mentions an "older SMBFS method", what is extremely confusing given the fact that the "newer" can be either CIFS or SAMBA. The other thread says "SMBMOUNT is not part of busybox, 2 variants exists under "Filesystem Applications", which I did not appreciate untlil I looked at this part of the configuration. I would say the situation is less than clear, given the fact that there are three variants, the newest (CIFS), new (SAMBA) and old (SMBFS). Without your clarification it was hard to guess which is which.

 

Thank you -- Wojtek

QuoteReplyEditDelete

 

 

2010-09-28 01:08:15     Re: SAMBA or SMBFS?

Mike Frysinger (UNITED STATES)

Message: 93892   

 

the thread is not talking "SMBFS" from the uclinux-dist config.  it is still talking about "smbfs" vs "cifs".

 

QuoteReplyEditDelete

 

 

2010-09-28 11:27:29     Re: SAMBA or SMBFS?

Wojtek Skulski (UNITED STATES)

Message: 93916   

 

I ran the build with the followowing menuconfig. Note that SMBFS items are deselected per this discussion. The build failed with the error message which is attached.

 

     --- SAMBA  

      [*] samba

      [*]   smbd

      [*]   nmbd 

      [*]   smbmount 

      [*]   smbumount

      [*]   mount.cifs

      [*]   umount.cifs 

      [*]   uses shared library  

        --- SMBFS

      [ ] smbmount 

      [ ] smbumount

 

make[2]: Entering directory `/home/uclinux/uClinux-dist/user/samba'

make -C samba-3.0.25a/source romfs

make[3]: Entering directory `/home/uclinux/uClinux-dist/user/samba/samba-3.0.25a/source'

romfs-inst.sh -e CONFIG_USER_SAMBA_SHARED build/bin/libsmbclient.so /lib/libsmbclient.so.0

cp: cannot stat `build/bin/libsmbclient.so': No such file or directory

make[3]: *** [romfs] Error 1

make[3]: Leaving directory `/home/uclinux/uClinux-dist/user/samba/samba-3.0.25a/source'

make[2]: *** [romfs] Error 2

make[2]: Leaving directory `/home/uclinux/uClinux-dist/user/samba'

make[1]: *** [romfs] Error 2

make[1]: Leaving directory `/home/uclinux/uClinux-dist/user'

make: *** [romfs.subdirs] Error 1

 

 

I will now try deselecting "uses shared library" and run again.

QuoteReplyEditDelete

 

 

2010-09-28 11:47:33     Re: SAMBA or SMBFS?

Mike Frysinger (UNITED STATES)

Message: 93917   

 

without any real details, i can only guess.  FLAT file format does not support shared libraries, so that option isnt going to work with that file format.

QuoteReplyEditDelete

 

 

2010-09-28 11:50:02     Re: SAMBA or SMBFS?

Wojtek Skulski (UNITED STATES)

Message: 93918   

 

After deselecting "uses shared library" the build suceeded. Perhaps these findings are worth documenting in the Wiki:

 

-- Do not use SMBFS, because it is old and obsolete and should have been removed from menuconfig.

 

-- Do not select "uses shared library".

QuoteReplyEditDelete

 

 

2010-09-28 12:07:01     Re: SAMBA or SMBFS?

Mike Frysinger (UNITED STATES)

Message: 93921   

 

the shared library option works fine if you pick a file format that supports shared libraries

 

saying "i want my userspace to be FLAT" and then also selecting "i want shared libraries" makes no sense

QuoteReplyEditDelete

 

 

2010-09-28 12:33:30     Re: SAMBA or SMBFS?

Wojtek Skulski (UNITED STATES)

Message: 93922   

 

saying "i want my userspace to be FLAT" and then also selecting "i want shared libraries" makes no sense

 

Sure. It would not hurt to add such a statement to the Wiki. The error message was not very descriptive.

 

In my opinion a more important addition to Wiki would be explaining that SMBFS should not be used. If the menu item is there, then a valid question is "and now what"? Would not hurt to answer such a question.

QuoteReplyEditDelete

 

 

2010-09-28 13:09:15     Re: SAMBA or SMBFS?

Mike Frysinger (UNITED STATES)

Message: 93923   

 

last i looked, you had access to updating the wiki ...

QuoteReplyEditDelete

 

 

2010-09-28 13:26:46     Re: SAMBA or SMBFS?

Wojtek Skulski (UNITED STATES)

Message: 93925   

 

> last i looked, you had access to updating the wiki ...

 

Done.

 

https://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:smb#uclinux-dist_settings

QuoteReplyEditDelete

 

 

2010-09-28 14:33:20     Re: SAMBA or SMBFS?

Mike Frysinger (UNITED STATES)

Message: 93928   

 

thanks

Attachments

    Outcomes