Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bcgLr-0004bg-5q for mharc-grub-devel@gnu.org; Wed, 24 Aug 2016 18:08:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcgLp-0004Wc-De for grub-devel@gnu.org; Wed, 24 Aug 2016 18:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcgLj-0001oo-Cc for grub-devel@gnu.org; Wed, 24 Aug 2016 18:08:48 -0400 Received: from prdiron-3.llnl.gov ([128.15.143.173]:21703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcgLj-0001ok-6X for grub-devel@gnu.org; Wed, 24 Aug 2016 18:08:43 -0400 X-Attachments: Received: from eris.llnl.gov (HELO [192.168.1.129]) ([128.115.7.7]) by prdiron-3.llnl.gov with ESMTP; 24 Aug 2016 15:08:42 -0700 Subject: Re: [bug #48885] zfs_mount fails with `org.zfsonlinux:large_dnode` enabled: Unsupported features in pool To: Toomas Soome , Andrei Borzenkov References: <20160824-172152.sv105496.85466@savannah.gnu.org> <57BDFF4C.60806@llnl.gov> <14abee20-6157-76ec-d6c7-f2a6da73ab82@gmail.com> Cc: The development of GNU GRUB , Ned Bass From: Brian Behlendorf Message-ID: <57BE1A81.1070405@llnl.gov> Date: Wed, 24 Aug 2016 15:06:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.15.143.173 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 22:08:50 -0000 On 08/24/2016 02:26 PM, Toomas Soome wrote: > >> On 25. aug 2016, at 0:04, Andrei Borzenkov wrote: >> >> 24.08.2016 23:10, Brian Behlendorf пишет: >>> Thomas, >>> >>> You should be able to simply add 'org.zfsonlinux:large_dnode' to the >>> list of supported features. As long as the dataset property dnodesize >>> is set to legacy there won't be any on-disk format changes. The dnodes >>> on disk will still be 512 bytes in size and it will just leverage some >>> previously unused pad space in the dnode_phys_t. >>> >>> Since we were concerned about grub support the zfs command now prohibits >>> users from setting the dnodesize property to a non-legacy value for >>> datasets with the bootfs property set. >>> >> >> We have no way to restrict which filesystems users will access at boot >> time. Can we check value of this property in grub? > > yes, this is exactly why the features for read list exist - if the pool is adding entry there and boot loader does not have matching entry in its implementation, you deny the access to pool. Which is exactly what did happen for this user. > >> >>> It shouldn't be a huge amount of work to fully support large dnode in >>> grub but simply allowing the feature flag and checking the property >>> should be enough for the vast majority of use cases. >>> >> >> It sounds like simply allowing this feature may access filesystem with >> incompatible on-disk format. Either we need additional checks for legacy >> format or we need full support for new format. > > sounds reasonable. Fully supporting the new format would definitely be the best solution. The on-disk format change is well explained in the large dnode commit comment and I'm happy to help clarify anything which isn't clear. The patch at its simplest allows a 512b dnode to expand in to multiple 512b slots of a 16k dnode dbuf. I haven't done grub development before but I can definitely review any proposed patch to add this support. -- Thanks, Brian