Received: by 10.223.176.46 with SMTP id f43csp860263wra; Fri, 26 Jan 2018 08:02:33 -0800 (PST) X-Google-Smtp-Source: AH8x225+SKfAoAS8OOYC/L2bComTJV5er8o6WG7wuBBvvwm0OeYPIbyuswDiPSVyHM8DVOCRMG+k X-Received: by 10.99.126.86 with SMTP id o22mr16189305pgn.364.1516982553212; Fri, 26 Jan 2018 08:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516982553; cv=none; d=google.com; s=arc-20160816; b=PFsBoLJVTgasvBYCqeBjXsc2wgIeEpC6MUwSvZy+p3rUAN4UlV58//U4Cthpb0D9qx 7SuDanCV0eZslXb7LBiuVUVsOpNyYBocLlMVgJnek6UjKYb5eiwtPz4SlkiczWQPwv1L 1BeXyDA9E6Ou+G/Gso+J8ek95ghNI34ps4WbcPPglPZIX7BXWn+HWYD2c3OdzDDBlwq4 tMhZ6muNcmZOlGu0++qu3jNFNR3MJZNrddDcMGt4O18zga0O/A2cKe9EPlsM4ywvCnXn b+ji7zbiV3r0GzBYwrrfmfAiTLWgv6W1weHPfwJXUZNJ0UtKdAeblYpm5Q2NRekW+sis GqhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=5StGDDYaMcoWp+Gt0bq2VpsVuOKNicvjhTl9oNgwGdI=; b=YWBWHynEsz2uClZtiUqi/s9gGKM2Rf4ci3OgDxZM59S84h+oq1nhD6ZOmu/icmS6pn jWQmXF2qj/RgiLt/pOAfrEWhHqqXSJBGsR/cZ2IvWNRVJWCJpqgvo/5tFOU13s2TumPK mKsORTqX6tVS1g5Jd5f2LIv7ZzPfXhCOrc3NMFQ+qR8mEuYuU5vIa9N97ONi3+AGClnn FqEguyP4gve5SviE8zqo5qplyDDDKNwE0pppnSgnOl0X3yEJW+YhiTSx+nfkNerBl2Gs nNJuLMZSESa1xwFn4GlgR8JiOlZ3z24/VhS9kCvhd8ULhvDZvrt0cA/+gysJIRG4dJ8f pDoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=DOcZAO2Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si3853409ple.452.2018.01.26.08.02.14; Fri, 26 Jan 2018 08:02:33 -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=@cisco.com header.s=iport header.b=DOcZAO2Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753523AbeAZQA6 (ORCPT + 99 others); Fri, 26 Jan 2018 11:00:58 -0500 Received: from alln-iport-1.cisco.com ([173.37.142.88]:3462 "EHLO alln-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbeAZQA4 (ORCPT ); Fri, 26 Jan 2018 11:00:56 -0500 X-Greylist: delayed 572 seconds by postgrey-1.27 at vger.kernel.org; Fri, 26 Jan 2018 11:00:55 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1615; q=dns/txt; s=iport; t=1516982456; x=1518192056; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=WH227MJVQx+LRvdD8fLUE7UCaSluNra5ymRI+8qbiK4=; b=DOcZAO2Q9K8axrU80xFP+7s54dQYgmnC3nW9FCdDuCYg1gV/Cg/4NmOx v8F4qvWOKpiMouiMy2UoUs1j/lxIcJqVdWvFTYE0EJ78M4eKhJjkvcWoA Z4DXlsBo6uFTdH/hxVaWwbJ2D0Jw2bQsBQUxSD5mBjI8IhtqteS4dXXyc A=; X-IronPort-AV: E=Sophos;i="5.46,417,1511827200"; d="scan'208";a="62092344" Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2018 15:51:22 +0000 Received: from sjc-ads-6991 (sjc-ads-6991.cisco.com [10.30.218.111]) by rcdn-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id w0QFpLK3031651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Jan 2018 15:51:21 GMT Date: Fri, 26 Jan 2018 07:51:21 -0800 (PST) From: Victor Kamensky To: Henrique de Moraes Holschuh , Rob Landley cc: Arnd Bergmann , Taras Kondratiuk , "H. Peter Anvin" , Al Viro , Mimi Zohar , Jonathan Corbet , James McMechan , initramfs@vger.kernel.org, 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 In-Reply-To: <20180126103132.7szs5lj5ppm7eyy6@khazad-dum.debian.net> Message-ID: 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> <20180126103132.7szs5lj5ppm7eyy6@khazad-dum.debian.net> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Auto-Response-Suppress: DR, OOF, AutoReply Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jan 2018, Henrique de Moraes Holschuh wrote: > 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. My understanding that TRAILER is really used on tape devices, there is no notion of file end in this case, it is just a stream of bytes from char device. Thanks, Victor >> (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 >