Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2022 06:06:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264709] Inappropriate ioctl for /dev/cd0 after upgrade 13.0 -> 13.1
Message-ID:  <bug-264709-227-b7ICmAdjcJ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264709-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264709-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264709

--- Comment #2 from amahling <andreas.mahling@googlemail.com> ---
Created attachment 234852
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234852&action=
=3Dedit
truss output for freac

There is no dmesg output related to freac

I suppose, the relevant truss output lines are

fstatat(AT_FDCWD,"/dev/cd0",{ mode=3Dcrw-rw---- ,inode=3D108,size=3D0,blksi=
ze=3D4096
},0
x0) =3D 0 (0x0)
readlink("/dev/cd0",0x7fffffffbd80,255)          ERR#22 'Invalid argument'
fstatat(AT_FDCWD,"/dev/cd0",{ mode=3Dcrw-rw---- ,inode=3D108,size=3D0,blksi=
ze=3D4096
},0
x0) =3D 0 (0x0)
nanosleep({ 0.100000000 })                       =3D 0 (0x0)
openat(AT_FDCWD,"/dev/cd0",O_RDONLY,00)          =3D 11 (0xb)
ioctl(11,CDIOCALLOW,0x0)                         =3D 0 (0x0)
ioctl(11,0xc4e01903 { IORW 0x19('?'), 3, 1248 },0x805156608) ERR#25
'Inappropria
te ioctl for device'
fstat(1,{ mode=3Dp--------- ,inode=3D5190,size=3D0,blksize=3D4096 }) =3D 0 =
(0x0)
++ WARN: open: Inappropriate ioctl for device
write(1,"++ WARN: open: Inappropriate ioc"...,46) =3D 46 (0x2e)
close(11)                                        =3D 0 (0x0)

complete truss output attached

It doesn't matter whether a cd is inserted or not, the error is always thro=
wn.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264709-227-b7ICmAdjcJ>