2.4.7 Shares Configuration
The <shares> section defines the available virtual filesystems. Each virtual filesystem
is associated with a driver class that provides the interface between the virtual
filesystem and the core protocol servers.
The JLAN Server Jar file contains two virtual filesystem drivers:-
•
JavaFileDiskDriver
Maps the virtual filesystem to the local filesystem using the java.io.File
class.
•
DBDiskDriver
Uses a database to hold the virtual filesystem structure. The database
interface used is configurable to allow different database types to be
used. The file data is accessed via a file loader class with different
implementations allowing the file data to be stored on the local
filesystem, in database BLOB fields or in a repository.
Shares Configuration
<diskshare name=”...”
comment=”...”/>
Defines a virtual filesystem. The
name
attribute specifies
the share name that will be used by a client to map or
mount the virtual filesystem.
The optional
comment
is returned by various information
requests.
<diskshare name=”JLAN” comment=”Test area”/>
<driver>
Specifies the start of the disk share driver class definition
block.
<accessControl>
<accessControl default=”...”>
Specifies the access control rules block.
The
default
attribute specifies the default access for
clients that do not match any of the access control rules.
The default value may be
Read
for read-only access,
Write
for read/write access or
None
for no access.
An empty access control block may be specified with a
default value or
Read
or
Write
.
<disableChangeNotification/>
Disables the processing of change notifications for this
virtual filesystem.
Windows clients register for change notification to watch
file/directory changes made by other clients.
<size totalSize=”n”
freeSize=”n”/>
<size totalSize=”n” freeSize=”n”
blockSize=”n”
blocksPerUnit=”n”/>
Specifies the virtual disk size, free space and optionally
the block and allocation unit sizes.
The disk size and free space may be specified as 'n' bytes,
'nK' for kilobytes, 'nM' for megabytes or 'nT' for terabytes.
17