From owner-freebsd-mips@freebsd.org Mon Oct 12 15:25:53 2015 Return-Path: Delivered-To: freebsd-mips@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 D8010A11C68 for ; Mon, 12 Oct 2015 15:25:53 +0000 (UTC) (envelope-from moxalt@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BAEB4A56 for ; Mon, 12 Oct 2015 15:25:53 +0000 (UTC) (envelope-from moxalt@riseup.net) Received: from cotinga.riseup.net (unknown [10.0.1.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 7A4A1C2340 for ; Mon, 12 Oct 2015 08:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1444663552; bh=lW7yWaygrulE7cSqY6C5uyUymGoOBDRUtd6eYCWJSDM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=eHeJRtJDEFPyhLr2RDaxYYwGz1miycqA0EYQElurEM6K01ZyqJwmlZdsyTvz3sQ8g YseNvu4g2XX++XHsMklB9dyHhArn3wyhsG3Wiaj7QCM1qcbmG/+uCDg3ZR7hgqJNWh IU7mW1NM6TwND8PEfV5U3wEYd085g3M+g2u/2c7k= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: moxalt) with ESMTPSA id 871BC1C0224 Date: Mon, 12 Oct 2015 18:25:46 +0300 From: moxalt To: freebsd-mips@freebsd.org Subject: Re: Some makefs(8) improvements Message-ID: <20151012182546.5e0c09e1@multivac> In-Reply-To: References: <561ABE06.60905@rdtc.ru> Organization: Debian Project X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 15:25:53 -0000 On Sun, 11 Oct 2015 20:21:30 -0700, Adrian Chadd wrote: > Hi! > > It looks fine to me as a stopgap measure. Sean, please do commit it > when you have some spare time. :) > > Thanks! > > > -a > > > On 11 October 2015 at 12:52, Eugene Grosbein wrote: > > Hi! > > > > While building my own FreeBSD/mips image for device having 8MB flash inly, > > I've faced two problems with makefs(8) utility. > > > > First, there is a bug in makefs: it fails to initialise fs_providersize > > in a superblock while making UFS file system. This leads to other problems > > with geom_label. The (trivial) patch is attached to the PR I just submited: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203704 > > > > Then, makefs is not quite compatible with mkulzma/geom_uncompress feature: > > geom_uncompress kernel module reports GEOM provider size rounded up to > > its compression block size. Generally, this changes original media size > > and now it fails to match the size of embedded UFS that again > > leads to problems with geom_label kernel module. This module does not like > > the mismatch and skips the file system while tasting the GEOM and looking > > for UFS label. > > > > I've added new option "-r" to makefs to round up generated image to > > specified block size, f.e.: > > > > makefs -t ffs -r 65536 -o bsize=4096,fsize=512,label=flash > > optimization=space fs.img fs > > > > geom_uncompress does not change GEOM media size for images rounded that way > > and geom_label accepts such GEOMs just fine. > > > > The patch is attached to another PR I just submited: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203707 Top-posting. No.