Package: usbmount
Severity: normal

Hello Richard, Rogério,

Won't per-device locking eventually produce race conditions?
Specifically, I'm looking at the code that allocates a mount point:

        # Search an available mountpoint.
        for v in $MOUNTPOINTS; do
        if [ -d "$v" ] && ! grep -q "^[^ ][^ ]*  *$v " /proc/mounts; then
            mountpoint="$v"
            log debug "mountpoint $mountpoint is available for $DEVNAME"
            break
        fi

So if you don't do global locks and plug in a few different, /active/ devices,
you'll probably overmount. ;)

So I think we'll have to find another way to speed usbmount up a little.

Best Regards,
  Hagen Fuchs



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to