All of lore.kernel.org
 help / color / mirror / Atom feed
* Volume Daemon for automatic device mounting
@ 2003-10-05 18:13 reflex
  2003-10-14  0:07 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: reflex @ 2003-10-05 18:13 UTC (permalink / raw)
  To: linux-hotplug

Greetings all,

I am new to the list so I hope this mail gets through.
I am currently writing an application, that can replace the
mount -a on system startup and some other really neat things :-)

I wanted to mount my iPod automatically through hotplug. I was
not able to do that properly because I never knew where it
would appear. Since I also have a USB-Flash-Stick this became a
really annoying problem. The thing that bothered me most was that
every f***ing windows or Mac OS (even X!) was able to handle that
without any problem.

Now the deamon works like this:
You give it a list of devices to scan (/dev/sda, /dev/sdb etc.)
Then it scans them either periodically or on SIGUSR1. 
If a new device was found it detects fstype, volumename, UUID etc
and mounts it under /Volumes/whatever or at a fixed point
(defined previously).

The reason why I write to this list: 
It would be cool if there was some sort of subscription service
in hotplug where my program could subscribe and would be informed
when a new (storage) device was inserted. That way it would know
instantly what device it had to scan. Otherwise I will have to
call it from one of the shellscripts and then rescan ALL devices
probably causing nasty errormessages in syslog.

The Volume Daemon would also be able to replace devlabel. I will
add a feature where you can give UUID's to all filesystems (even
to those that do not support it natively)

Regards
Clemens
-- 
Clemens Wacha           wacha@gmx.ch           ICQ:12620492

proudly running Debian/GNU Linux. See http://www.debian.org


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Volume Daemon for automatic device mounting
  2003-10-05 18:13 Volume Daemon for automatic device mounting reflex
@ 2003-10-14  0:07 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2003-10-14  0:07 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Oct 05, 2003 at 08:13:01PM +0200, reflex wrote:
> 
> The reason why I write to this list: 
> It would be cool if there was some sort of subscription service
> in hotplug where my program could subscribe and would be informed
> when a new (storage) device was inserted. That way it would know
> instantly what device it had to scan. Otherwise I will have to
> call it from one of the shellscripts and then rescan ALL devices
> probably causing nasty errormessages in syslog.

You can drop in a link to your program into /etc/hotplug.d/default that
will cause your program to get called for every hotplug event.  Or you
can use D-BUS to receive all hotplug events (someone is going to write a
hotplug call -> D-BUS message program one of these days...)

Hope this helps,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-14  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-05 18:13 Volume Daemon for automatic device mounting reflex
2003-10-14  0:07 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.