amd behaves strange

Dominic Fandrey kamikaze at bsdforen.de
Sun Apr 6 12:22:04 UTC 2008


The following is in my amd.map:

iso9660 type:=auto;fs:=${map};pref:=${key}/

iso9660/acd0 type:=program;fs:=/mnt/amd/iso9660/acd0;\
mount:="/sbin/mount mount /mnt/amd/iso9660/acd0";\
unmount:="/sbin/umount umount /mnt/amd/iso9660/acd0"


When no CD is inserted the following happens:
Apr  6 14:17:10 mobileKamikaze amd[29972]/info:  creating mountpoint directory 
'/mnt/amd/iso9660/acd0'
mount_cd9660: /dev/acd0: Input/output error
Apr  6 14:17:10 mobileKamikaze amd[29972]/info:  "mount /mnt/amd/iso9660/acd0" 
mounted fstype program on /mnt/amd/iso9660/acd0
Apr  6 14:17:10 mobileKamikaze amd[29972]/info: 
/var/run/automounter.amd.mnt/iso9660/acd0 set to timeout in 3 seconds
umount: /mnt/amd/iso9660/acd0: not a file system root directory
umount: /mnt/amd/iso9660/acd0: not a file system root directory
umount: /mnt/amd/iso9660/acd0: not a file system root directory
umount: /mnt/amd/iso9660/acd0: not a file system root directory
...

Even though there was no successful mount amd tries to unmount it until it's 
terminated. When entering a CD into the drive I can only mount it after 
restarting amd.

It has come to my attention that mount returns 0 even on unsuccessful mount 
attempts, maybe that's the cause.

I'm runing RELENG_7 on amd64.


More information about the freebsd-stable mailing list