From owner-freebsd-hackers@freebsd.org Sun Feb 26 23:31:56 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9881FCEECE4 for ; Sun, 26 Feb 2017 23:31:56 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 31A6862D for ; Sun, 26 Feb 2017 23:31:56 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id v77so49625639wmv.1 for ; Sun, 26 Feb 2017 15:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=02bi78eLJwpGQ9MUGu28A4o/gxq79WVFVnREyEFB2so=; b=Jy/BiMZFt5+7kkkAm1uoHz4eh/6yTIcVP20zC7olTZRjW143qRkU0Oiv/FI6jF9C97 FuD5XOZe6eemXBIB3kIq1wPebdWSmU5Vko639XHhflWdPGpVHWP+gHH5p/CVNfmL7dX1 HE9FlaMUjS4d0r4bSSzUaUgvnWc59+RubAqdJypfjZAYP6DOV0RuTFEclUgdFqcXyRcJ ql+ei606sPRj3dkP9CfLvWmeTul8tcXMg+YZGtAofkB53q5UedJ5dzJt2bUT2EVgaus2 0fScvBwEcAnACcFz8K3EHQZpprsSIV9CK8geu1NPpAY492/L/Ylf6vliS3jEn8XPFp3R ZLeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=02bi78eLJwpGQ9MUGu28A4o/gxq79WVFVnREyEFB2so=; b=MubAtpKRbgZnpRLln849732nFscZf7Z/ip5o0MFwehH/N4bSENq0DBWQTND69T90Ev gJgOD1jCRK9O8SnWKUnuMosByOKrLC2bAXTWrwPaLgCTi4+qYNpi256m16V8CGnyEajC weuDYIgXLwaT7TH7+0LSv+EODwyyraXdy7YA+X9nruAh2ybhNBpEI+q80SVyLywcPC3S Ro8EnxqgKWu2ztJApDEfBLyeqV7fMo0TTLfIj0RKoq6ERkGSSAgliFUJZYQE0rpahWkD 7OeusHIqB8wGwFOKFunw0s0X9jO4dpQA7ATCLxSDFlDDahrcp8pDmPd16oOGLDebemKK jY2w== X-Gm-Message-State: AMke39loQmbdjqwuy5gh/5y3EjLrywgAzdrYkwiZhOpefJ4tyJZfdTgSmL+nqfes+4mmgsnRyWMswG84pTMSWA== X-Received: by 10.28.102.86 with SMTP id a83mr1034791wmc.76.1488151914562; Sun, 26 Feb 2017 15:31:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.158.102 with HTTP; Sun, 26 Feb 2017 15:31:54 -0800 (PST) From: Zaphod Beeblebrox Date: Sun, 26 Feb 2017 18:31:54 -0500 Message-ID: Subject: ZFS should prefer the most specific... or something. To: FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 23:31:56 -0000 So, my experience is that I added two drives (that showed up as ada0 and ada1) ... something odd with the raid card added a da0 ... which is unreadable ... seems to be a bogon. ... and ZFS, in it's infinite wisdom changes my nice, neat da0s2a zfs to diskid/s2a. ... this is doubly bad, because then the /dev/da0s1a cannot mount as swap. I realize that this is can be somewhat fixed for non-root zfs with import/export, but for root ZFS ... you're stuck. Can we have ZFS prefer the shortest (rather than longest)? Can we have it prefer labels, if they exist (have a priority field in the different types of geom ... an order in which they are tasted)? The current situation has been annoying multiple distinct times.