ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] unable to eject
@ 2005-02-07 16:32 Alexey Rusakov
  2005-02-07 18:29 ` Alexey Morozov
  0 siblings, 1 reply; 20+ messages in thread
From: Alexey Rusakov @ 2005-02-07 16:32 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Hi all,

С тех пор как обзавёлся udev, наблюдаю странное поведение eject. Из-под 
пользователя попытка сделать eject /dev/cdrom/cdwriter0 (так же как и на 
/dev/cdrom) приводит к сообщению:
eject: unable to eject, last error: Invalid argument
То же самое сообщение появляется при выполнении команды от root, с той 
разницей, что привод всё-таки открывается.
Запуск eject под strace показывает следующую вещь (цитирую только 
релевантный кусок):

open("/dev/cdroms/cdwriter0", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, CDROMEJECT, 0xbffff758)        = -1 EIO (Input/output error)
ioctl(3, FIBMAP, 0xbffff600)            = -1 EPERM (Operation not permitted)
ioctl(3, FDEJECT, 0xbffff758)           = -1 EINVAL (Invalid argument)
ioctl(3, MGSL_IOCGPARAMS or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0xbffff710) 
= -1 EINVAL (Invalid argument)

Этот же кусок из-под root выглядит так:

open("/dev/cdroms/cdwriter0", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, CDROMEJECT, 0xbffff808)        = -1 EIO (Input/output error)
ioctl(3, FIBMAP, 0xbffff6b0)            = 0
ioctl(3, FIBMAP, 0xbffff6b0)            = 0
ioctl(3, FIBMAP, 0xbffff6b0)            = 0
ioctl(3, BLKRRPART, 0xbffff6b0)         = -1 EINVAL (Invalid argument)
ioctl(3, FDEJECT, 0xbffff808)           = -1 EINVAL (Invalid argument)
ioctl(3, MGSL_IOCGPARAMS or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0xbffff7c0) 
= -1 EINVAL (Invalid argument)

Кто-нибудь может прокомментировать, что происходит, и что нужно сделать, 
чтобы ioctl(CDROMEJECT) не давал EIO?

-- 
  Alexey "Ktirf" Rusakov


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-02-09  8:29 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-07 16:32 [sisyphus] unable to eject Alexey Rusakov
2005-02-07 18:29 ` Alexey Morozov
2005-02-07 18:43   ` Alexey Rusakov
2005-02-07 19:49     ` Alexey Morozov
2005-02-07 20:06       ` [sisyphus] [JT] " Alexey Rusakov
2005-02-07 20:07       ` [sisyphus] " Konstantin A. Lepikhov
2005-02-07 20:33         ` Alexey Morozov
2005-02-07 20:45           ` Konstantin A. Lepikhov
2005-02-08  7:48             ` Alexey Morozov
2005-02-07 20:11       ` [sisyphus] " Alexey Rusakov
2005-02-07 20:52         ` [sisyphus] " Konstantin A. Lepikhov
2005-02-08  6:25           ` Alexey Rusakov
2005-02-08  6:26   ` [sisyphus] " Mike Lykov
2005-02-08  7:20     ` Denis A. Yurashkou
2005-02-08 13:39     ` [sisyphus] " Michael Shigorin
2005-02-09  6:15       ` Mike Lykov
2005-02-09  8:15         ` Alexey Morozov
2005-02-09  8:18           ` Mike Lykov
2005-02-09  8:26           ` [sisyphus] [JT] " Michael Shigorin
2005-02-09  8:29             ` Alexey Morozov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git