From owner-freebsd-mips@freebsd.org Mon Oct 12 03:21:31 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 ACFF7A11FB1 for ; Mon, 12 Oct 2015 03:21:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (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 7C4871F17 for ; Mon, 12 Oct 2015 03:21:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igkz10 with SMTP id z10so38482991igk.1 for ; Sun, 11 Oct 2015 20:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RjU2/KB04dZvZIeGYtF34/vL7P+bDUmWu9kVHKYwW9k=; b=gJ+qFrSS1c2U4Sd5UmrmKhFeB7j2+GGp9Z/4UJJwdQASu0bgRJMnU22XkNBatgcGxt zg6NjbyhUOdphZ/0bsF2CaWrpi+kFk4Xvgmmwunwt/JZIij2IQ0XU+WchKrKAfz+Umj7 4KNe7KHhgnOv/07zXKTRIV/XZWbiiliI9IAIETq7motiNrBoYRy7lxCjUJzGwKKcXfzC yH/WbZT15r9H1WZrV8wCAuyEQHPyuRfZXBLBnwec2VnYm4ySGtWHWYvSaY4xTY0Nayb3 cRWcn81yWHMZsvcfv/1gEKduGUcorj5VJx2JteSDmsl8zo3WivdwQhL3z6d2jySqvcWC 4iBw== MIME-Version: 1.0 X-Received: by 10.50.45.33 with SMTP id j1mr9239010igm.61.1444620090691; Sun, 11 Oct 2015 20:21:30 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Sun, 11 Oct 2015 20:21:30 -0700 (PDT) In-Reply-To: <561ABE06.60905@rdtc.ru> References: <561ABE06.60905@rdtc.ru> Date: Sun, 11 Oct 2015 20:21:30 -0700 Message-ID: Subject: Re: Some makefs(8) improvements From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 03:21:31 -0000 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 > > Hope there PRs won't hand around for years :-) > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"