From patchwork Sun Jul 10 23:11:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1949 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 11 Jul 2022 09:12:51 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26B7CoiF005587 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 11 Jul 2022 09:12:50 +0200 Received: by mail-wm1-f60.google.com with SMTP id bg6-20020a05600c3c8600b003a03d5d19e4sf2322246wmb.1 for ; Mon, 11 Jul 2022 00:12:50 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1657523565; cv=pass; d=google.com; s=arc-20160816; b=GX5UOOqA54Bg1MIViKN3C3E5XPYdJ6x6lcvEejsGfcEiDszsQoiKhg1RxlqynOzlpv cE+sjpqNAQHcSqzsciD9gJCuTCJ9JPiDeuUmaI8BKTJvZg61add2Ik0JX03h8RKsUaBW b03yTLUwxVgy2HRfNkRkLH3PpgJ1B5PdShLzJmav5M+MCJZi5FHQExYDb0R7WnJwWb5P V4vWk22czdrdo/mbKDwqYuSFBP/xhxMP+ivom+mi9Rl9t8UddACe4ZLWaAO2MXA+lbli 5N/Hy19ClJO0LsyH2+JQmK1ksKcVKt2dMwrDIRLA7lGTM37VvWrx1YT1dNaOOEL3BBfI PGRg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=eazsKDI10sjRaEg3iP3RjeqnI4GLKZUDduRoiAkoAxM=; b=KeMByKDbosms+5dzO6VC/1FPlUc5yLPkYm8PP/qF+1EbRz+pMWK94W8FGxpt2itWXv HwmFYnyZ0Qixl973iqawCeIj0Q18H9+bkVyIqcZHPI7Dft22N1l/W6HLsfgYI+z84srg EzyydxafBslrwEdwPOteI23JbukN2EHLKSNvhTr7AgRT+mZ2E56Plvk0bhh9VLLj0CRg eWrt98cnv7H93je2D79JVsjXNPAxiyZ0ybOPFrmft5gvTNih4LtLy3ZbAR00oeJUiryD p8eSzsDJIT/62oIsFKg7gppIGxtKmRVwbb4m9wMfwWl5b+rkIZ+fUou2qoUos9WZEN/A gVXw== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=aMIPoiW7; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.2.77 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=eazsKDI10sjRaEg3iP3RjeqnI4GLKZUDduRoiAkoAxM=; b=dNBIz/j3urZ9+DGwueNA8k9k7atYSO3QOqEmqzgQ+VFbccS1e/5y3UFJTk/ssOU4cD D+Fj0BjGBiu6wbRe4UAdW5spCLn66P9/pWmHLlkM+QFIqp+G2+dSno30oN7Z9JLBypdw leHbMS7VgPdFJzDxMjbl3RYia23cIMF6UQvbhCnUodL1dRcmnw0dbfgnQxjbvTZESfmq QmZDwHsd+mCkcJ4Bry7FngfJDuIh5ld1JdpQO8Wl1ce6YbPIZT6h6KsVD3MpH92S7B4C o29cgEvHlN+l0mZysVWAyiEVZDUc2X2fj9v9CfKqOKAsYeN5br8VfAc1XqWFoDYiJgta pdBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=eazsKDI10sjRaEg3iP3RjeqnI4GLKZUDduRoiAkoAxM=; b=FB7TfKf6qAhr1myguHrBjWwWn/XTprDXgU3cD463FyAE//KzP4nYggM2jewEmmxCUC zlgmDsWGxduEHAI03CKfiwtr9Zg2Clv0E/KZf+pDImsnDDA6+EaFcem1qg2Dufbw9DWP Mf/0XdK8RbDD1xNHtGhQF4LWqLIK7o/tglZ2aOnEuNhiWL0yjuPACIr76PoqQEGL58OH c6yhIbOwmex/PB7TrR+FrEG6r5tErOOibCSc6riFrT+CvVd5UeUjnyEzqF6EEdoUj0R7 JGUw0LLDIcS4Geuttel4C+uKKGaeVlyTq3LReC5Q1YB38LysSmyWrw3Qn0RpYeRPozRF +0qA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora9QZlzK3f5+13jFO7JWunUFFCnYxL8xLpsZs2TvLBbpBOGWCup6 5Tw3Df7IMEQ7SwBdM5g34S8= X-Google-Smtp-Source: AGRyM1vVEfz6UjVNLSCqcupSavlcpnOe7+7Jx4XipaFu89qUbCxYKFeTuQRFBMDRWAQBbFkbgYVO8A== X-Received: by 2002:a05:600c:1412:b0:3a1:6e8f:f18f with SMTP id g18-20020a05600c141200b003a16e8ff18fmr14576539wmi.9.1657523565166; Mon, 11 Jul 2022 00:12:45 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:588d:0:b0:21d:339f:dc1 with SMTP id n13-20020a5d588d000000b0021d339f0dc1ls773258wrf.0.gmail; Mon, 11 Jul 2022 00:12:44 -0700 (PDT) X-Received: by 2002:a05:6000:1883:b0:205:c0cb:33c6 with SMTP id a3-20020a056000188300b00205c0cb33c6mr15987058wri.39.1657523564250; Mon, 11 Jul 2022 00:12:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657523564; cv=pass; d=google.com; s=arc-20160816; b=uj1aw2LDe2llMxHXCW1M1cX6zGbsqLLzU/nGPgrAOumpPd/k2pQZpusZGajK2gPN0N tAdYsStLYBVoMgEsCuvzsfY3miRgf8GgV+X0LdSh+a+qfUMMoV7E8fwkPIlVIadEljlr kC4DophELl5Xxlxpx3fPaPzJru7vylvb9qvcsnVPlr6vU2lehdroHyN2VXX1QzxDO0b6 HJQsPiAxg9XXJYe00fDTe5Z3knSTy3PTajhtXLjE9JFs7ET3k8DpjNZ8cpJVqQr332rl bYpUJjVVy6JMSHn5E55xuxlNL3mitXuAc6mNU7Zo29ajZA5cAevwBkiQLgsTOeLhog4n Tszw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=j6413sibULpMt7KNjafGLMytBzBGjnfSaxY38RWoPIE=; b=Qo2oi5RFIuFEI24BcFCZSH91HanlUFGcWa4nSHa63/aA509ahy55g8X76KwOzQe7ML Z5XmPFTb8BXO0K5eJ1JajAQSb3lVtl3kNHLNeFHS8bFAHXgXfOpJAJ7J9MeJ8Pxuv/Il S/zG7UajHNDSyolnxWM1ZC7jfw7PgD1rDqosbGB9Cq46njWdOJ+rO+clkh3S/KY49JID rQzwxhEL74X/3BTNE8PuKYkvassYJXTE6dc6i0qkje8qCuejnFagrEDQ8jCwUwRNYb91 oH3RYzmjI4ZFDsOpVQXd3OUSAtXXgvvTg1d2zOps2uKVtpLIlpU48dpBv0FA5Df6LBuv FWGw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=aMIPoiW7; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.2.77 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20077.outbound.protection.outlook.com. [40.107.2.77]) by gmr-mx.google.com with ESMTPS id ay14-20020a05600c1e0e00b003a03ade6826si394284wmb.0.2022.07.11.00.12.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jul 2022 00:12:44 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.2.77 as permitted sender) client-ip=40.107.2.77; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GX8u+b3wbv7V8kj8pgw2BCcLj6kF4CdPT4fKEXP8CBtfeiDApc6mrUR6V6Hd7+5IM6HBUlPP9dIwQtEX5/mgXI+WHjfs14i9APFkyWWDsVbj+ZEn1rYGcTnlL7XWPr/0NunsQXLX2XNY8ANawaK4tMSDm1zMz14TA4XdO4qM4Os3QLrk0uxcXc4qy3EPi/h5g1IyEqqN2Mw4/vjKwvnnnh/ms6WUl7VRMsZ0nI5/mXG8AI4v7IdnkwKLL/XrEgCXVE2/dyzoMQY0YPbIxELhxiX5T9XEPt41yGUlHbwQopMRLrudaKQRZZPGgXOG7llt8nOoq20ebcTGKGAmFD2y6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=j6413sibULpMt7KNjafGLMytBzBGjnfSaxY38RWoPIE=; b=ofSVRGlQKYhEpFTEEEblmUL5eUcvclipn/tKnrII5SKeDt+oE96iAVmTD2UUKdBbMJEHqvMAVbKoHaPVlT8wuoAQo7q9fWL4NusTQKU2etwKTtPVTcBH8ksq6foaQBPVso7acgmVjmiRKQ51YYl3GAPZiR31RVjJllSFZJltxuOVcn2CvId65ef0ED3DyLMVw4i/L9gdrN7gySCNlk3VpCzPdlcmyAI4wXw3UFXlB04GrexwMoUEctpH4Y17aht+aD8NqK+iCpDMjOdSyn98OGy0YFl39QVMhZdQXD7NW+8K+XDwV3U53z30DBnR8Mw7xDhUY3r5qIpDXNKJJaGq5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.71) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from SV0P279CA0046.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:13::15) by AM5PR1001MB1137.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:203:7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15; Mon, 11 Jul 2022 07:12:42 +0000 Received: from HE1EUR01FT063.eop-EUR01.prod.protection.outlook.com (2603:10a6:f10:13:cafe::d2) by SV0P279CA0046.outlook.office365.com (2603:10a6:f10:13::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Mon, 11 Jul 2022 07:12:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.71) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.71 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.71; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.71) by HE1EUR01FT063.mail.protection.outlook.com (10.152.1.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Mon, 11 Jul 2022 07:12:41 +0000 Received: from DEMCHDC89XA.ad011.siemens.net (139.25.226.103) by DEMCHDC9SKA.ad011.siemens.net (194.138.21.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Mon, 11 Jul 2022 09:12:37 +0200 Received: from random.ppmd.siemens.net (139.25.68.25) by DEMCHDC89XA.ad011.siemens.net (139.25.226.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Mon, 11 Jul 2022 09:12:37 +0200 From: Adriaan Schmidt To: CC: Jan Kiszka , Adriaan Schmidt Subject: [PATCH v2 2/2] targz-img: Handle sparse files efficiently Date: Mon, 11 Jul 2022 09:11:55 +0200 Message-ID: <20220711071155.776897-3-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220711071155.776897-1-adriaan.schmidt@siemens.com> References: <20220711071155.776897-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC89XA.ad011.siemens.net (139.25.226.103) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-AS-Result: No-10--10.639000-8.000000 X-TMASE-MatchedRID: unW2lS01oc21JHnmpthFJJaycdB1x26jCKGbCJcIygYItCy6ZX/lLy04 j1lb8rc6WMFR4yyN53pAHOg8qEtqyM5hRJfP3092myiLZetSf8nyb6HMFK1qexQabjOuIvShC24 oEZ6SpSk6XEE7Yhw4FulxiuW/VIWxuBYRPK6J4xAYXHnHSAO0PcvA6cAKRRdbjaz9pUkirR4= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--10.639000-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-SNTS-SMTP: DA54434396C736079DD7A4519A9D73451B68064FC1A0E83DDD85B19E9BF2B2F52000:8 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8ba719f7-828b-4ff9-752c-08da630cbeca X-MS-TrafficTypeDiagnostic: AM5PR1001MB1137:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /RgxV15oVs/9iEZ4fCf5FCJzJbNoNkyaxT8kR1DHguNynF69ESpC3a7b8RWlPpDMi3g5ZroxyrmocCmEQFFNOoo2PUfR0OI33BtBs2dpMssM+QAtUZ1i9xzotMTXig3hestg9wUJykPZb6SIQp7N/AlXD6joUhC+R52OlmDHMD82h06UihVuwQuKrNpAJB66ub1Lpk8X3Z1vwUNsC2QHicvQXImx6VXAHcy95qrTR8sZijyO/K95fpGgsg55HaZZBzoFlqvrb8mqIU6Z3EKKksAUArjTvfylgHOi+/fZ3usp5kFjJJJ9S9K97NQ+XxitMTHU6pyq+3g7NAN9YTTpaODoGOtlAMjUPXrr7yq4EXV4H6ST++txDBGFKg82VMAfMfCEqhWxDb6iX4AKF6ncO6hbiujyiIKJk9tZaM9ExdYFa4n/Za6YSNY8H9zy9s6fktw1osHWz2J4dA3zlICfo9qmeNnDyPU8gBPy4KfopTxmQELSEAlUid3Kbdcoh5tAZC5QxE9NOGQ7yDQQGYsrloM5G/tvf92VN2qBMCHS47wuKM934zyv/t5Rr3ehZz+34oKFJiN+ka+HFbcLExRM2lNp5ycyJRvyxg3mO4lMWYsICqo8k7/Awwla8Kc+3ISP1Q9bb7c72bNMIHPJ18+A5g+YA2+6PaSNDI2aQn0SF9YCcnrlZQejE/3iPGsl9A4qpaOI7URmdLzA4W9zS0HD25wExIuBdHPKWTuBTYYis7cFW90ba8uybkhcidFm68Ks2OT1B4HgI7OjTiVMGg6ZB2+Cqpjmi0u9qzi5YUrCkKjTKKHAQi05z6dn6wWZReuMVqdNYPNdWMSj50k0Xrw9ohLLvcYz8GZZahtjTElrZjI= X-Forefront-Antispam-Report: CIP:194.138.21.71; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(376002)(346002)(39860400002)(36840700001)(40470700004)(46966006)(2906002)(107886003)(6666004)(41300700001)(956004)(2616005)(86362001)(47076005)(336012)(82310400005)(26005)(82740400003)(186003)(1076003)(16526019)(356005)(82960400001)(36860700001)(70206006)(81166007)(40460700003)(70586007)(40480700001)(316002)(8676002)(4326008)(44832011)(8936002)(36756003)(83380400001)(6916009)(54906003)(5660300002)(478600001)(4744005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2022 07:12:41.7264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ba719f7-828b-4ff9-752c-08da630cbeca X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.71]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT063.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR1001MB1137 X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=aMIPoiW7; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.2.77 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX From: Jan Kiszka Saves space in case the image contains any sparse files. Signed-off-by: Jan Kiszka Signed-off-by: Adriaan Schmidt --- meta/classes/imagetypes.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/imagetypes.bbclass b/meta/classes/imagetypes.bbclass index bea5af53..1e8e223d 100644 --- a/meta/classes/imagetypes.bbclass +++ b/meta/classes/imagetypes.bbclass @@ -8,7 +8,7 @@ IMAGER_INSTALL_tar = "tar" TAR_OPTIIONS ?= "" IMAGE_CMD_tar() { - ${SUDO_CHROOT} tar ${TAR_OPTIONS} -cvf \ + ${SUDO_CHROOT} tar ${TAR_OPTIONS} -cvSf \ ${IMAGE_FILE_CHROOT} --one-file-system -C ${PP_ROOTFS} . }