From: Emmanuel Florac Subject: Re: st driver doesn't seem to grok LTO partitioning Date: Fri, 25 Dec 2015 18:47:52 +0100 Message-ID: <20151225184752.38fdbc26@harpe.intellique.com> References: <20151218170644.24167419@harpe.intellique.com> <20151221134649.293a1a1e@harpe.intellique.com> <20151221185759.38dd21d6@harpe.intellique.com> <3F0204AE-89BD-45C7-883F-D6EC3A1D34E2@kolumbus.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail1.g1.pair.com ([66.39.3.162]:37809 "EHLO mail1.g1.pair.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753295AbbLYRrt convert rfc822-to-8bit (ORCPT ); Fri, 25 Dec 2015 12:47:49 -0500 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Kai Makisara Cc: linux-scsi@vger.kernel.org Le Fri, 25 Dec 2015 17:53:46 +0200 (EET) Kai Makisara =C3=A9crivait: > The patch at the end of this message is an attempt to make the=20 > partitioning work for both old and new drives. The patch is against > st.c from the current git kernel, although I have tested it in 4.3.3. > It seems to work with my HP DDS-4 drive. It includes some debugging > printks and I have tried to see that the commands that would have > been sent to newer drives are basically correct. >=20 > The patch uses the scsi level of the device to separate processing. > The FORMAT MEDIUM command is defined in SCSI-3 and I suppose that no > current drive is still SCSI-2. In addition to the "sane" changes > using the method to specify partitions, the patch implements the > following: if the size is 1, the driver tells the drive to use > default partitioning for two partitions. For the HP Ultrium this > should result in partition 0 of 1425 GB and 1 of 37.5 GB. I don't > know if this is a useful addition. Great I'll give it a try soon next week! --=20 -----------------------------------------------------------------------= - Emmanuel Florac | Direction technique | Intellique | | +33 1 78 94 84 02 -----------------------------------------------------------------------= - -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html