From: Laurence Oberman <loberman@redhat.com>
To: "Kai Mäkisara (Kolumbus)" <kai.makisara@kolumbus.fi>
Cc: Shane M Seymour <shane.seymour@hpe.com>,
Emmanuel Florac <eflorac@intellique.com>,
Laurence Oberman <oberman.l@gmail.com>,
linux-scsi@vger.kernel.org
Subject: Re: What partition should the MTMKPART argument specify? Was: Re: st driver doesn't seem to grok LTO partitioning
Date: Mon, 1 Feb 2016 14:02:57 -0500 (EST) [thread overview]
Message-ID: <348338681.10695858.1454353377434.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <5A3F5643-16A4-4010-B3D2-3F931B620128@kolumbus.fi>
The new patch did not work for me, but I chatted with Shane and I have his mt version.
I will update my DAT to same firmware or newer than his and provide a second tested by.
I also expect my LTO5 to show up this week so will be ready for that.
Thanks everyone for keeping tapes alive
Laurence Oberman
Principal Software Maintenance Engineer
Red Hat Global Support Services
----- Original Message -----
From: "Kai Mäkisara (Kolumbus)" <kai.makisara@kolumbus.fi>
To: "Shane M Seymour" <shane.seymour@hpe.com>
Cc: "Laurence Oberman" <loberman@redhat.com>, "Emmanuel Florac" <eflorac@intellique.com>, "Laurence Oberman" <oberman.l@gmail.com>, linux-scsi@vger.kernel.org
Sent: Monday, February 1, 2016 1:43:26 PM
Subject: Re: What partition should the MTMKPART argument specify? Was: Re: st driver doesn't seem to grok LTO partitioning
> On 1.2.2016, at 8.31, Seymour, Shane M <shane.seymour@hpe.com> wrote:
>
> Hi Kai,
>
> Thanks for the changes the HPE DAT72 DDS5 drive now works as expected:
>
Good. Thanks for testing.
...
>
> I'm asking around again one final time to see if I can lay my hands on a LTO5 or greater drive so I can test LTO partitioning as well.
>
> The only other thing I can think of (I'm not sure if this is an improvement or not) is if bp[pgo + PP_OFF_MAX_ADD_PARTS] + bp[pgo + PP_OFF_NBR_ADD_PARTS] (max.parts and nbr_parts in the debug message) is zero just return -EINVAL unless you know of any take drives that report them both as 0 but can be partitioned? That is after this:
>
> DEBC_printk(STp, "psd_cnt %d, max.parts %d, nbr_parts %d\n",
> psd_cnt, bp[pgo + PP_OFF_MAX_ADD_PARTS],
> bp[pgo + PP_OFF_NBR_ADD_PARTS]);
>
> add (and also turn off the can-partitions option):
>
> if ((bp[pgo + PP_OFF_MAX_ADD_PARTS] + bp[pgo + PP_OFF_NBR_ADD_PARTS]) == 0) {
> DEBC_printk(STp, "Drive not partitionable - max.parts+nbr_parts is 0\n");
> STp->can_partitions = 0;
> return -EINVAL;
> }
>
> I'm not especially fussed if you don't want to add that though.
>
I thought about a test like this (only test maximum number) but decided not to add it. The reason was that
I did not want to change anything that has worked before. I quite trust that the current drives return sense
data instead of crashing and the end result for the user would be the same. However, one can argue that
returning EINVAL is better than EIO but does the user notice? If the common opinion is that a test like this
should be added, I am not against it. It can be added to the code for SCSI >=3 where it does not risk
anything for the old drives.
IMHO, can_partitions should not be cleared based on the test. For example, trying to partition a LTO-4 tape
in a LTO-5 drive should not disable partitioning. (The mode page should return zero as maximum number of
partitions when a LTO-4 tape is inserted.)
Thanks,
Kai
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-02-01 19:03 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151218170644.24167419@harpe.intellique.com>
2015-12-21 12:46 ` st driver doesn't seem to grok LTO partitioning Emmanuel Florac
2015-12-21 17:25 ` "Kai Mäkisara (Kolumbus)"
[not found] ` <20151221185759.38dd21d6@harpe.intellique.com>
2015-12-21 18:57 ` "Kai Mäkisara (Kolumbus)"
2015-12-22 5:51 ` Seymour, Shane M
2015-12-22 9:59 ` Emmanuel Florac
[not found] ` <CAAzz28i5=oz_BmcoEC2ApLN9zj_F4aDmGkCXkXaS48HR_Ockew@mail.gmail.com>
2015-12-22 10:04 ` Emmanuel Florac
2015-12-22 10:31 ` Laurence Oberman
2015-12-25 15:53 ` Kai Makisara
2015-12-25 17:47 ` Emmanuel Florac
2015-12-29 16:14 ` Emmanuel Florac
2015-12-29 16:58 ` Emmanuel Florac
2015-12-29 17:46 ` "Kai Mäkisara (Kolumbus)"
2015-12-29 17:58 ` Emmanuel Florac
[not found] ` <20151229191347.2e0e5f0e@harpe.intellique.com>
2015-12-30 17:54 ` Kai Makisara
2015-12-30 18:33 ` Emmanuel Florac
2015-12-30 19:21 ` "Kai Mäkisara (Kolumbus)"
2015-12-30 21:24 ` Emmanuel Florac
2015-12-31 16:08 ` "Kai Mäkisara (Kolumbus)"
2016-01-04 10:22 ` Kai Makisara
2016-01-04 10:54 ` Emmanuel Florac
2016-01-04 11:05 ` Emmanuel Florac
2016-01-04 11:46 ` Emmanuel Florac
[not found] ` <CAAzz28gW69rB-6h2fwxtwnTj5h7HZcn2qkJdx2GTgu3Y8SDNqQ@mail.gmail.com>
2016-01-04 15:32 ` Emmanuel Florac
[not found] ` <CAAzz28iCoG-rjnL7EsjHXA7UtRJSCEXuwL3+27ZBo7fckcBAfg@mail.gmail.com>
2016-01-05 21:55 ` Laurence Oberman
2016-01-06 15:10 ` Emmanuel Florac
2016-01-06 15:23 ` Laurence Oberman
2016-01-06 15:25 ` Laurence Oberman
2016-01-06 15:32 ` Laurence Oberman
2016-01-06 15:48 ` Douglas Gilbert
2016-01-06 15:54 ` Laurence Oberman
2016-01-06 16:07 ` Emmanuel Florac
2016-01-14 20:12 ` Laurence Oberman
2016-01-15 0:21 ` Seymour, Shane M
2016-01-21 20:58 ` What partition should the MTMKPART argument specify? Was: " "Kai Mäkisara (Kolumbus)"
2016-01-21 22:06 ` Laurence Oberman
2016-01-22 2:10 ` Seymour, Shane M
2016-01-22 3:31 ` Seymour, Shane M
2016-01-22 11:24 ` Emmanuel Florac
2016-01-22 11:50 ` Emmanuel Florac
2016-01-26 23:35 ` Seymour, Shane M
2016-01-28 17:31 ` "Kai Mäkisara (Kolumbus)"
2016-01-28 17:39 ` Emmanuel Florac
2016-01-24 21:05 ` Kai Makisara
2016-01-25 10:21 ` Emmanuel Florac
2016-01-28 7:36 ` Seymour, Shane M
2016-01-28 17:04 ` "Kai Mäkisara (Kolumbus)"
2016-01-28 19:21 ` Laurence Oberman
2016-01-28 19:56 ` "Kai Mäkisara (Kolumbus)"
2016-01-28 23:12 ` Seymour, Shane M
2016-01-28 23:23 ` Laurence Oberman
2016-01-28 23:25 ` Laurence Oberman
2016-01-29 0:54 ` Seymour, Shane M
2016-01-29 17:22 ` Kai Makisara
2016-02-01 6:31 ` Seymour, Shane M
2016-02-01 18:43 ` "Kai Mäkisara (Kolumbus)"
2016-02-01 19:02 ` Laurence Oberman [this message]
2016-02-01 22:59 ` Seymour, Shane M
2016-02-03 3:40 ` Laurence Oberman
2016-02-03 2:18 ` Seymour, Shane M
2016-02-03 18:36 ` Kai Makisara
2016-02-04 1:43 ` Seymour, Shane M
2016-02-04 17:54 ` "Kai Mäkisara (Kolumbus)"
2016-02-04 18:09 ` Douglas Gilbert
2016-02-04 19:25 ` Laurence Oberman
2016-02-04 18:12 ` Emmanuel Florac
2016-01-15 11:48 ` Emmanuel Florac
2016-01-22 10:17 ` Douglas Gilbert
2016-01-06 16:10 ` Emmanuel Florac
2016-01-06 16:16 ` Emmanuel Florac
2016-01-06 16:44 ` Emmanuel Florac
2015-12-29 16:59 ` Emmanuel Florac
2015-12-29 17:18 ` "Kai Mäkisara (Kolumbus)"
[not found] ` <CAAzz28gn2zwC5ZUTtPupDOTHekGspWh0vnWHV+jvbx52c=cq2Q@mail.gmail.com>
2015-12-21 17:49 ` Emmanuel Florac
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=348338681.10695858.1454353377434.JavaMail.zimbra@redhat.com \
--to=loberman@redhat.com \
--cc=eflorac@intellique.com \
--cc=kai.makisara@kolumbus.fi \
--cc=linux-scsi@vger.kernel.org \
--cc=oberman.l@gmail.com \
--cc=shane.seymour@hpe.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).