[kde-solaris] Re: KDE 3.1 and vold

Alan Mizrahi kde-solaris@mail.kde.org
Tue Mar 18 02:22:00 2003

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sunday 16 March 2003 7:00 am, kde-solaris-request@mail.kde.org wrote:

> Hi Alan,
> On Sat, Mar 15, 2003 at 11:54:50PM -0400, Alan Mizrahi wrote:
> > Is KDE 3.1 supposed to work with vold on solaris?
> Yes. In fact, it's there since KDE 1.1.1.
> > This are my experiences trying to use KDE 3.1 with vold:
> >
> > I create a floppy device on the desktop (/dev/diskette). When I click it
> > I hear my floppy drive working, but I get an error message: "Malformed
> > URL http://file:"
> [...]
> Try using /dev/diskette0 as the "Device:" entry.

It worked. Strange, but good.

> [...]
> > The cdrom icon works using /dev/dsk/c0t2d0s2, but this device could be
> > different on different machines, is there a standard cdrom device or a
> > link to the default device? I tried with /vol/dev/aliases/cdrom0 and it
> > didn't work.
> Hmm, I'm the one to blame for the current libvolmgt integration, I'm
> afraid, so probably I should explain: the current implementation requires
> to set the physical path for the CDROM/ZIP/whatever device manually into
> the properties dialog.
> I admit that it would be nice to have the drop-down menu in this dialog
> list all installed devices that are under vold's control (as configured in
> /etc/vold.conf). But since spare time seems to be always a tight resource,
> I've not yet managed to improve this... :-(

Check the attachment, thats the only way I could think of doing it.
Tell me what you think about it.


			Alan Mizrahi
			Universidad Simon Bolivar

Content-Type: text/x-csrc;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="vol2.c"

 * Build with: gcc vol2.c -o vol2 -lvolmgt
 * If you know a better way to do it, mail me: alan@cesma.usb.ve

#include <stdio.h>
#include <volmgt.h>
#include <dirent.h>
#include <limits.h>
#include <strings.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	char dev[PATH_MAX];
	DIR *dir;
	struct dirent *dent;
	char *sym_name;
	if (dir=opendir("/dev")) {
		while (dent=readdir(dir)) {
			if (sym_name=volmgt_symname(dev)) {
				printf("Device: '%s'\tSymname: '%s'\n",dev,sym_name);
	return 0;