Package: samba-autoshare Priority: optional Version: 1.2-1 Source: samba Architecture: all Maintainer: Paul A. Whittaker Section: System/Network Destination: any Depends: smb-server, storage-detect (>= 3.6-1), vol-id, ed, busybox (>= 1.11.2-1) Description: Updates Samba to automatically share detected storage devices This script glues storage_detect to Samba (smbd or cifsd) such that /etc/samba/smb.conf is automatically populated with shares for each local storage device, and kept up to date as removable devices change. . This is necessary because sharing the top of the automount hierarchy ([/var/chroot]/media) is unsafe, due to assumptions inherent in the SMB protocol that a share is a single filesystem (specifically, that stat-ing the root of a share will provide disk block usage information that is accurate for any subordinate path). . Where possible, samba_autoshare will try to use on-media volume labels as share names. Otherwise, device filenames are used.