Problem with USB plug and play

I am trying to implement a simple plug and play feature involving USB
flash devices formatted with QNX filesystem. I want to implement an
automount sequence resulting in the detection of a flash
device(/dev/hd…) in the USB slot and the automatic mounting of the
filesystem (/fs/hd…).

I activate the devb-umass device driver:-

devb-umass cam pnp umass patch=/dev/io-usb/io-usb
blk automount=hd1t77:/fs/hd1:qnx4

This command results in the detection of the flash device and the mounting
of the filesystem. When I remove the device, an automatic unmount is
successfully perform. The problem is with the reinsertion. The device is
detected ( /dev/hd1t77 ), but the filesystem is not mounted (/fs/hd1). The
following message is printed

Skipping automount fsys on /dev/hd1t77

A manual mount command is successful.

Currently the automount feature only works on initial device
insertion. This will be changed in a future version.

You could however use the USB DDK to implement a driver
that detects UMASS device insertion/removal, spawns the driver
and mounts partitions. On device removal it would stop the driver.

Henry

david chivers <david@emulatorsinternational.com> wrote in message
news:d3319k$ad5$1@inn.qnx.com

I am trying to implement a simple plug and play feature involving USB
flash devices formatted with QNX filesystem. I want to implement an
automount sequence resulting in the detection of a flash
device(/dev/hd…) in the USB slot and the automatic mounting of the
filesystem (/fs/hd…).

I activate the devb-umass device driver:-

devb-umass cam pnp umass patch=/dev/io-usb/io-usb
blk automount=hd1t77:/fs/hd1:qnx4

This command results in the detection of the flash device and the mounting
of the filesystem. When I remove the device, an automatic unmount is
successfully perform. The problem is with the reinsertion. The device is
detected ( /dev/hd1t77 ), but the filesystem is not mounted (/fs/hd1). The
following message is printed

Skipping automount fsys on /dev/hd1t77

A manual mount command is successful.