[Pkg-ltsp-devel] Bug#443200: ltspfs: cdrom and floppy are mounted twice

vagrant at freegeek.org vagrant at freegeek.org
Sat Nov 24 21:08:49 UTC 2007


On Sat, Sep 22, 2007 at 03:44:37PM -0700, vagrant at freegeek.org wrote:
> so, because ltspfs mounts in /tmp/.ltspfs-username/* and then bind
> mounts into /media/username/*, gnome-vfs sees this as two different
> devices. apparently this does not happen in ubuntu. no idea for KDE or
> other systems.
> 
> i think it would be possible, if not desireable, to reconfigure the
> mount to happen directly into /media/username. this would require
> patches to lbmount and ltspfsmounter, at least.

managed to put together a couple proof of concept patches that mount
directly into /media/username that also simplify the code (especially
the code run as root).

basically, just switched the order of the ltspfs mount and the
/media/username directory creation, and dropped the bind mount from
lbmount. in order to do this, /media/username/* needs to be made
writeable by the user's group (the patch does this in lbmount).

works from the commandline, haven't tested with gnome or kde or anything
with a desktop, really.

patches attached.

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: single-ltspfs-mount.diff
Type: text/x-diff
Size: 5035 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20071124/e79a3456/attachment.diff 


More information about the Pkg-ltsp-devel mailing list