Received: by 10.223.176.46 with SMTP id f43csp513646wra; Fri, 26 Jan 2018 02:32:24 -0800 (PST) X-Google-Smtp-Source: AH8x225doqgdJ9MysTktf2qqemeLWE8GOANdeduMGnJML78h7u8dKnokoTQ02YeqG8/St5L3EqZN X-Received: by 10.98.159.139 with SMTP id v11mr18418534pfk.64.1516962744196; Fri, 26 Jan 2018 02:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516962744; cv=none; d=google.com; s=arc-20160816; b=v4G/dQk5LIIVEMnFcIbNprGOd45NfGS74QGm9LSQDSuQgyRFbq+wl+eOCufvlulJYU a40Q6o2iN64zsdZweePEez/dh5+uUHieRn+tj6fkUGq5z4Oc7gKL5krgIEuHz/1YIDfb Nsy/BDWmEFZrnYOnxYmOPnl1pYSy/HUVwWS9Knh/514mdm5Vx0WjJ32N0tk7AN0K0Xsz kjW0sRRDl88Pe0GFdo21ILDrighO5mjL8mpjd0JFkLn4exqrAL4b5EfsKP5520aMp6OF haQFYOKUCYt9gkSsTHYIcaV3ffW+DIOb8+bi+1eHddP3UgkC5g0nB3roqsU1rPCxQjp3 dhJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature :arc-authentication-results; bh=7o+21PF8ZO+2IB+iWKyCnnnCNg6RTCVzwQX0cI/L2sI=; b=wy/TGNrY6xebIhDWOmwEmLCR7j1JDH06KZNPe9kJiwNSXXmLJQrcRzdQ2qDyPGS9UZ ppi85aH2km/oQf+V1B5lN7dH+Co7iDi8jko2ix7djawnyFcz2GH98diJ3cf5e0NKFDuw N3TaV4J1jM5WqAnsGuZn7c6/pJaEyKzZz7bNSCf6w1IKI6BSdzZiUqnfynEVWo+LHggh 95iEK6s6S/zi4tWfhe9DXqsmgdB/GJmX13B/q2r03UJOXT53y+OYjjDFEynH+o7mptDq mW/oRHhe9/+lS6mnDghDrmi/1fFj5AT0k1KniRM2Et7gPmz3toYsJQgoMqs4YL0++pJP 7VVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm1 header.b=gzxjhePH; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=W4oo97tf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6si2820375pgd.282.2018.01.26.02.32.09; Fri, 26 Jan 2018 02:32:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm1 header.b=gzxjhePH; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=W4oo97tf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753160AbeAZKbl (ORCPT + 99 others); Fri, 26 Jan 2018 05:31:41 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60987 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbeAZKbi (ORCPT ); Fri, 26 Jan 2018 05:31:38 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 56CFF20D9B; Fri, 26 Jan 2018 05:31:37 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 26 Jan 2018 05:31:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmh.eng.br; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=7o+21PF8ZO+2IB+iWKyCnnnCNg6RTCVzwQX0cI/L2sI=; b=gzxjhePH pPNFl3PnL4h0nf0AYtfbPUv2FcWkPhm6j11DhgJI/97n2x2A8TIw9Ex3nX0ZrbAM IBoM9KTH0ZsBwHZqdyMOEx+7h6Ol3ALZJ0nCnO1GA9EzQWn5WLXIjRS2tmUq/1pQ N/jL9jNnfVkGb4iudfSWLoqopJREAomSwAnUfANNOv7pFf+f0QAssKReCg1RGTG/ pS+6sPLjWX+os6r6i8XQprUoNOa8DfKllC1asarRo6Kpdn0rwhyqbKi6EjQXNxb1 nYTfAncwPn/swN6rcIWDFtxz4qqSUsCRFAoCTRGwu75G/6G4GU1BLFLIgWcZlhF+ s++ctaonKnHjrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=7o+21PF8ZO+2IB+iWKyCnnnCNg6RT CVzwQX0cI/L2sI=; b=W4oo97tfRreGLHcAA953O7k+nLgR9iv7FwSaEjsUavVgz lxAcr3UCw8z/Dd2fTFvRYGtXq9ctH0JaYgBL0NcMIUs+9QuCU73O28EYiE6ukJ8n 6s8WGA39RiJL2j3js2NZZl+CQhB+a9E47clj/K7FYrDknLmt+VuEJs5459wCBBkL A8+BJUUFwB+8N3Nb57HPJGgNB1lfphPIGJYJhjxthhxLnDbmwo7F3GZYtDj147mj pJDpokf/Thf9dlHiAJKeT4Kh2Y9a1CnUK8dIx/jADACvMSCpXHVYvwc6/pfF+QyC p/5Eos4ZUEehBQJ2HVp2lE2Fv0H/Fl+Ot3X1tfF+w== X-ME-Sender: Received: from khazad-dum.debian.net (unknown [201.82.128.91]) by mail.messagingengine.com (Postfix) with ESMTPA id 06DFD7E3D5; Fri, 26 Jan 2018 05:31:37 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 8FAF53400BD6; Fri, 26 Jan 2018 08:31:34 -0200 (-02) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net Received: from khazad-dum.debian.net ([127.0.0.1]) by localhost (khazad-dum2.khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zUYUxeFm-ip5; Fri, 26 Jan 2018 08:31:32 -0200 (-02) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id 73C213400BD4; Fri, 26 Jan 2018 08:31:32 -0200 (-02) Date: Fri, 26 Jan 2018 08:31:32 -0200 From: Henrique de Moraes Holschuh To: Rob Landley Cc: Arnd Bergmann , Taras Kondratiuk , "H. Peter Anvin" , Al Viro , Mimi Zohar , Jonathan Corbet , James McMechan , initramfs@vger.kernel.org, Victor Kamensky , linux-doc@vger.kernel.org, Linux Kernel Mailing List , LSM List , xe-linux-external@cisco.com Subject: Re: [PATCH v2 01/15] Documentation: add newcx initramfs format description Message-ID: <20180126103132.7szs5lj5ppm7eyy6@khazad-dum.debian.net> References: <1516850875-25066-1-git-send-email-takondra@cisco.com> <1516850875-25066-2-git-send-email-takondra@cisco.com> <0725a45f-45ee-7346-12ee-c3cc4b862654@landley.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0725a45f-45ee-7346-12ee-c3cc4b862654@landley.net> X-GPG-Fingerprint1: 4096R/0x0BD9E81139CB4807: C467 A717 507B BAFE D3C1 6092 0BD9 E811 39CB 4807 User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Jan 2018, Rob Landley wrote: > That said, I don't think -h newcx should emit (or recognize) the > "TRAILER!!!1!" entry. That's kinda silly in-band signaling for 2018: > files have a length, pipes provide EOF, and each cpiox entry starts with > 6 bytes of c_magic anyway. (I stopped toybox from producing the TRAILER > entry back in june, toybox commit 32550751997d, and the kernel consumes > the resulting cpio just fine. All the trailer does is prevent you from > concatenating cpio files, which is a feature multiple people asked me for.) Not in the kernel. What TRAILER does in the kernel is to act as a barrier for the hardlink creation state, which IS a good thing. You could just specify it as such for "newcx". The kernel will continue reading for more entries after TRAILER, so concatenation is not broken by TRAILER. It is also insensitive to NUL-padding length (as long as it is 4-byte aligned), which is another nice feature you could specify for "newcx". Also, the kernel does something nothing in userspace ever tried to, AFAIK: it detects compression signatures along with the CPIO header signatures, and thus it can take several compressed and uncompressed archives concatenater together (and the compressor doesn't need to be the same, either). -- Henrique Holschuh