IAM
====
Case:		2009/381
Name:           Support off-line files on SAM-QFS for Samba in Solaris
Submitter:      Jiri Sasek
Owner:          Daniel Hain
Status:         waiting need vote 07/13/2009
Exposure:       open

SUMMARY
=======
        Samba is CIFS volume and printing server.

        The current version of Samba (3.0.34) integrated in Solaris
        does not support off-line file attribute for files stored on
        a SAM-FS volume when located on an off-line storage (a tape).

        Such situation has the following consequences on MS Windows
        clients:

         - Client's attempt to access an off-line file will fail on
           timeout which is set too short to access a file stored
           on a tape or any other external (off-line) storage.

         - If MS Windows Explorer's current directory is set to
           a directory full of off-lined files it causes a "storm"
           of the tape changer arms when thumbnails are being generated.

        The solution is to let Samba use libsam.so library, [4], which
        provides the off-line information for files stored on a
        off-line storage (a tape).  Since this library is optional
        on Solaris then it is necessary to use lazy binding option for
        linking this library with Samba.  The lazy binding option makes
        sure that "smbd" (Samba daemon) will run even if libsamfs.so is
        not present on the system.

        When "samfs share = yes" configuration option is set in smb.conf
        (Samba configuration file) and libsamfs.so is not present on the
        system then calling the lazy linked library-call will not complete
        the dlopen(2) call successfully and the standard message from the
        run-time linker notifying about is redirected from the stderr
        output to the "smbd" log file appropriate to the CIFS session
        serviced by this "smbd" daemon. Samba log files can be configured
        as described in smb.conf(4). In the standard distribution such log
        file is located on the "/var/samba/log/log.<hostname|IP>" path.

        SAM-FS library libsamfs.so is delivered by optional packages
        SUNWsamfsr SUNWsamfsu and should be installed from the external
        source.


ISSUES
=======


VOTE
====
Approved


THE NEXT STEP
=============

file CR's against in kernal CIFS server
