From: Alexey Rusakov <ktirf@altlinux.ru> To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru> Subject: [sisyphus] unable to eject Date: Mon, 07 Feb 2005 19:32:42 +0300 Message-ID: <4207982A.9030203@altlinux.ru> (raw) 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
next reply other threads:[~2005-02-07 16:32 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-07 16:32 Alexey Rusakov [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4207982A.9030203@altlinux.ru \ --to=ktirf@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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