From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 15 05:50:11 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A0B8AB30 for ; Mon, 15 Jul 2013 05:50:11 +0000 (UTC) (envelope-from selphie.keller@gmail.com) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id 406729DC for ; Mon, 15 Jul 2013 05:50:11 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id w56so9517802wes.25 for ; Sun, 14 Jul 2013 22:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oUVZpJfWZI2GgbpTJHiGA+ghtWHvfjXES8eYMo19lDE=; b=J9hCvg7i6e3uWBwj9OOTtQclyRcsoq3H3qqPpfRrzPEtGKl1Sbzj8e/2RYC2G0oNBC OSRQQPcXIbIY6o0kAZbvIUDRx6scfNlRDOLaqfHoj5EeffYW21ygmkHMyaQQv+UL+Y4f N/SxNhhcfU12M4vYYpLZiOZOD6kMKnCjSorgKpk8lIe2JNbENH6rlZ7i7A3HAXkP+qoj xCbAoE7TiL7zwDHfs7LHpMhtVMHQY/naMW1/U5XgmF9tec7lCosQlBfKY7vW5pa2uqIp xC1JEewPtqkxpSsBMfTd0HRowF5tgBM3eo7zteLC53bMIsHFJc6/FC3OJhPk/bCBQByi JaTg== MIME-Version: 1.0 X-Received: by 10.194.8.163 with SMTP id s3mr30816807wja.41.1373867410195; Sun, 14 Jul 2013 22:50:10 -0700 (PDT) Received: by 10.216.170.5 with HTTP; Sun, 14 Jul 2013 22:50:10 -0700 (PDT) Date: Sun, 14 Jul 2013 22:50:10 -0700 Message-ID: Subject: GPT issues with device path lengths involving make_dev_physpath_alias From: Selphie Keller To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 05:50:11 -0000 hello hackers, I recently ran into a issue with a storage server that has some of the drives in gpt vs mbr, tracked it down to a 64 char limit that is preventing aliases in function make_dev_physpath_alias. I was curious if there was any reason why this couldn't be bumped from 64 to 128 which would make room for the device paths of gpt roughly around 94 and 96 chars long. - #define SPECNAMELEN 63 */* max length of devicename */ + *#define SPECNAMELEN 127 */* max length of devicename */* http://fxr.watson.org/fxr/source/sys/param.h#L106 Jul 14 22:10:17 fbsd9 kernel: make_dev_physpath_alias: WARNING - Unable to alias gptid/4d177c56-ce17-26e3-843e-9c8a9faf1e0f to enc@n5003048000ba7d7d /type@0/slot@b/elmdesc@Slot_11/gptid/4d177c56-ce17-26e3-843e-9c8a9faf1e0f - path too long Jul 14 22:10:17 fbsd9 kernel: make_dev_physpath_alias: WARNING - Unable to alias gptid/4b1caf38-d967-24ee-c3a0-badff404e7ed to enc@n5003048000ba7d7d /type@0/slot@5/elmdesc@Slot_05/gptid/4b1caf38-d967-24ee-c3a0-badff404e7ed - path too long -Selphie (Estella Mystagic)