Chandan Maddanna <[EMAIL PROTECTED]> wrote: > #!/usr/bin/bash > mkdir $2 > lofiadm -a $1 /dev/lofi/1 > mount -F hsfs -o ro /dev/lofi/1 $2 && echo -e "\n\t I have mounted $1 under > the folder $2\n\n" >
Just a note for the 'hsfs' case: I intend to add a sector offset option to the hsfs mount code. I added half of the code already and forgot to complete this. this offset feature is needed soon when cdrecord will support multi-borderDVDs because the sd driver not yet support a correct MMC based ioctl to read the session offset. If your problem is not the fact that lofiadm is a separate program and you like to specify offsets, this would be the way to go. BTW: The original idea that has been copied by Linux, FreeBSD and Sun is a driver called "fbk" that I wrote in 1988. ftp://ftp.berlios.de/pub/schily/kernel/fbk/fbk.tar.gz fbk did use this syntax for mounting: mount -F fbk -o ro,type=hsfs /dev/fbk0:file_to_mount /mnt Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED] (uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org