All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michal Suchánek" <msuchanek@suse.de>
To: Stanislav Brabec <sbrabec@suse.cz>
Cc: "Yuriy M. Kaminskiy" <yumkam@gmail.com>, util-linux@vger.kernel.org
Subject: Re: [PATCH] libmount: if ENOMEDIUM and tray is open, close tray and retry
Date: Mon, 2 Oct 2017 15:50:04 +0200	[thread overview]
Message-ID: <20171002155004.5878caee@kitsune.suse.cz> (raw)
In-Reply-To: <eb224df4-615b-18e2-a9ee-5d98db9db225@suse.cz>

On Mon, 2 Oct 2017 15:06:33 +0200
Stanislav Brabec <sbrabec@suse.cz> wrote:

> Michal Suchánek wrote:
> > it is completely reasonable to return ENOMEDIUM from kernel when the
> > tray is open and let userspace decide if it wants to attempt to
> > close the tray and how long it wants to wait for the tray to close
> > (it may be blocked/broken).
> >   
> But then, what is the purpose of /proc/sys/dev/cdrom/autoclose?

It can be used as a hint in mount if closing the tray is desired or
not.

I guess this used to work with IDE drivers not using SCSI emulation.

With SCSI the close tray command is executed like any other with
default timeout and obviously does time out in most cases. 

But how long should the kernel wait? Is 1 minute ok? Should it wait 5
minutes in case the user did not align the medium properly and needs to
realign it? Who should set this timeout, where?

Thanks

Michal

  reply	other threads:[~2017-10-02 13:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-21 15:12 [PATCH] libmount: if ENOMEDIUM and tray is open, close tray and retry Stanislav Brabec
2017-07-21 18:42 ` Stanislav Brabec
2017-07-21 18:44   ` Stanislav Brabec
2017-07-27  8:58     ` Yuriy M. Kaminskiy
2017-07-28 15:26       ` Stanislav Brabec
2017-07-28 15:48         ` Stanislav Brabec
2017-10-02 13:00           ` Michal Suchánek
2017-10-02 13:06             ` Stanislav Brabec
2017-10-02 13:50               ` Michal Suchánek [this message]
2017-10-02 14:11                 ` Stanislav Brabec
2017-10-02 14:24                   ` Michal Suchánek
2017-10-02 14:36                   ` Michal Suchánek
2017-11-02 18:20                   ` Michal Suchánek
2017-08-01 12:16     ` Karel Zak
2017-09-05 11:04       ` Karel Zak
2017-09-05 12:53         ` Stanislav Brabec

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=20171002155004.5878caee@kitsune.suse.cz \
    --to=msuchanek@suse.de \
    --cc=sbrabec@suse.cz \
    --cc=util-linux@vger.kernel.org \
    --cc=yumkam@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.