Message ID | 20221113133554.73318-1-ayoub.zaki@embetrix.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBDBKTZHRZUJRBPXFYONQMGQEQFAT4MY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23b; helo=mail-lj1-x23b.google.com; envelope-from=swupdate+bncbdbktzhrzujrbpxfyonqmgqeqfat4my@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=QtN0B4BF; dkim-atps=neutral Received: from mail-lj1-x23b.google.com (mail-lj1-x23b.google.com [IPv6:2a00:1450:4864:20::23b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N9D3l5TLFz23mr for <incoming@patchwork.ozlabs.org>; Mon, 14 Nov 2022 00:36:03 +1100 (AEDT) Received: by mail-lj1-x23b.google.com with SMTP id a3-20020a2eb163000000b00276fff42408sf2892981ljm.9 for <incoming@patchwork.ozlabs.org>; Sun, 13 Nov 2022 05:36:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668346559; cv=pass; d=google.com; s=arc-20160816; b=AWZj6/30ZfmTAcQsNoeigdc8w3dg3PELfIOt6BWdHCIJ3TnqlVSRV+yl0OzFdR49Hk sf+8VycLm/wO7uQFe7OsE0dEdZQt/fCVzWt0zwO+jIztUAQ9I2Bwv42KJWpnVkorHAzc XQ9mdmRwPg9viuujGBUnxPXKD7+Bm91czWChnz9bodlqLVj7pSjeU1pl1SCjZcBIPXAE tvRaqWoO5OCgDXuylmI8pMxWSblvM+mCB7X6Ul7fJrgIUERduaK4lbicxDVURR/k4R+B WRalPNj/cU0h62LZGLT/EePduc2l+lp9GKUcdwm7gzeazDmdckTAYVnki0xbyLWa4LfF PyuA== ARC-Message-Signature: i=2; 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=xgLd8zHwoboaTMThGKrhoX3fygZH6LXztINCWM0pRok=; b=o+lZh9xHigFm2L7RSwKL4vnkIrFMHtqxVRKVdM36wY4MAx4SScmMb4qFlTmZj0FuRD 5rjCcg9vqnZnXyBMl2hQwggvROyNiaBVmUD8dAkBj71xfxYWlr1HB0AQPj6N5oSjQKqu b3cbu7pG3PQxH4PuwgwIUbAMVh+cTvfY3Cc+4fcoSfX/P3uH1+71av/CHifSFtLg/B78 AUF0Mhnouogy4QRUQJ1xp3ARkOboaXVRJpwZPWUb/ORRnW0ZSh8x+Dkbx5GMRAHO5qBE rYX7SGc1wdp0q440Z64Dv77ji+2AcY8axBaRqw5lz2VqDyo3ctIENIN9JRwD4LsshFzY jfhA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@embetrix.com header.s=rsa1 header.b="VblrK/AZ"; dkim=neutral (no key) header.i=@embetrix.com header.s=ed1 header.b="pBXxdx/e"; spf=neutral (google.com: 2a02:2350:5:501::1 is neither permitted nor denied by best guess record for domain of ayoub.zaki@embetrix.com) smtp.mailfrom=ayoub.zaki@embetrix.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=xgLd8zHwoboaTMThGKrhoX3fygZH6LXztINCWM0pRok=; b=QtN0B4BFtufsOR5FbUCW2S/ORWcjC16w9IAli17MyuZmqgZmO+lA4Iz9vwdvt5xDw8 zeK3SnyllwlvZ9CB8oMJaWtFzGGHTxVtYoaSGIi+SjYtx/d20ZiT6uxyw6QtECL47aFR kzEQVVh2BdKEX7Q+ZEw5rCsncjPxbWWoIKkJroFe2DmekGEblnAYufMV8GCQfhDHihDv uyk3mltfWtbipazYz6SWjb1rdUAnNCKmQtb0X4Bw/P8HkUTgWvLdunbXjompNy8loCku s3rKBAGRWcrl3sXV0MEH32TRJ0XurRfM9jeOuTkPiWptPWI6qU8ZtRGt3y7AUs36JnwN Z2Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=xgLd8zHwoboaTMThGKrhoX3fygZH6LXztINCWM0pRok=; b=1NKXNw1R8Yatvkd55CE6cPeoZHOFBEoFGoFvwprNI+2Mjq94VThnHThK9MpH8DKC93 Dfvx+v1t+rhTT8AQXg89uCWMwp1sys3FpMUCzP5i05SgTRnmXihLkXNK4e7jnIYpDJuo b6MWfMJrkeyemkznEr0+M8beTR/I7rlHOFc1PDrhrU0KBE07DPaMe0G/efZ3b7cd2Sy+ e6leSg2wAnmmj3S93hwXLRxM7XVPdEvRLnPmefZY/epfk5zhJ0OxsuExbTIzouUO/zmb FJZ1nxX3rkE1L6vRCy2YkR7pHNmMaavkSKB7WC/Pe8DkTwp2gxv7XQLyoaQ9PFHolUhY Q5UA== Sender: swupdate@googlegroups.com X-Gm-Message-State: ANoB5plUrPZgLkSf7Zu7vl8W66y6kcmTkdLdMW3p+ZAlt0nMslXLCpHg xNrH4yxcoxS2W2FoS8P5/4E= X-Google-Smtp-Source: AA0mqf64bjTu8MPj9CYnl7hTO4ppaANitYk/bZVd2Cqoz6kaXGzBeWsDoVNzNhjCTo/Zmz7VUDrBdQ== X-Received: by 2002:a19:6455:0:b0:4ab:2185:48ba with SMTP id b21-20020a196455000000b004ab218548bamr3271578lfj.458.1668346559476; Sun, 13 Nov 2022 05:35:59 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:b0ee:0:b0:277:1d5b:1cc7 with SMTP id h14-20020a2eb0ee000000b002771d5b1cc7ls1281209ljl.3.-pod-prod-gmail; Sun, 13 Nov 2022 05:35:57 -0800 (PST) X-Received: by 2002:a2e:a587:0:b0:277:70fb:8581 with SMTP id m7-20020a2ea587000000b0027770fb8581mr2980282ljp.118.1668346557780; Sun, 13 Nov 2022 05:35:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668346557; cv=none; d=google.com; s=arc-20160816; b=WG85esmqxsza5TxZMSteb5tTlnViSdm+3ZoSpnMhPaveHJ6U2+V9Uhzc/O6xWRaHQ2 fUBc3viGNwsBClwHjII6o4sgX6/PEQi/97Pd0gsOBcuaVciVNknd0k7t07rtCFSc3YQv w7/g8MrRPTZxN1a/RVyxr4NDV7DeabmYgUkxP176naZppvqzDfnrYXrFdNe3p4jcFTNl sIUwbcvv18BOqNzwB1mH1WyEreOqB8PYal/Z0l3XkSTYL2bRZBJIjjzRJOLoItqjTZ5X tij3BT0uu4VPRpKk8o/XO4CGprptBuJnDo+xhnJ77DHa3HgZtNZDNVJLckUxRSSeVM2E hatw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-signature; bh=VZrOBw8kdt5m4UXkVEFmvAEkDXSBb7lQ//AhaAYlKiY=; b=CBxbV7ahMCqrXiGWI4L5CMTREI3IGIWH6c6tYdArGYvhdszX5U9/YIDcem+oL0aofX VXwASMfqlY7FSpdtqi7xcxnkG7f8DAE33n9xCrwOoo/5/9yXgzWMXwlNtBIU7qfU0WyG nlXINpVRlxgRYFaytJEYOiFoiyJ7ye9S3wxNBb3j3lo42TKAo2I/QcSNlYW114Rzy4rq il/hMh1hleAVp+TabrcAL98WnEdL2ghEZn2F56EUbpwFSnSo0pxxVMTvx6HwGR6C8yrg td1pZ4r+Av9V6Kyh3l5jAriScrd9yr+TlgcrVkNx62VwGB2jhNz9rrhJJK4cUPBI8XBS Q3aA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@embetrix.com header.s=rsa1 header.b="VblrK/AZ"; dkim=neutral (no key) header.i=@embetrix.com header.s=ed1 header.b="pBXxdx/e"; spf=neutral (google.com: 2a02:2350:5:501::1 is neither permitted nor denied by best guess record for domain of ayoub.zaki@embetrix.com) smtp.mailfrom=ayoub.zaki@embetrix.com Received: from mailrelay2-3.pub.mailoutpod2-cph3.one.com (mailrelay2-3.pub.mailoutpod2-cph3.one.com. [2a02:2350:5:501::1]) by gmr-mx.google.com with ESMTPS id q18-20020a056512211200b004a273a44c4asi291333lfr.7.2022.11.13.05.35.57 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 05:35:57 -0800 (PST) Received-SPF: neutral (google.com: 2a02:2350:5:501::1 is neither permitted nor denied by best guess record for domain of ayoub.zaki@embetrix.com) client-ip=2a02:2350:5:501::1; X-HalOne-ID: 19e5067b-6358-11ed-bbd3-335755252108 Received: from xps13.fritz.box (dynamic-2a02-3102-8c10-00a0-b343-57b7-7835-6413.310.pool.telefonica.de [2a02:3102:8c10:a0:b343:57b7:7835:6413]) by mailrelay2 (Halon) with ESMTPSA id 19e5067b-6358-11ed-bbd3-335755252108; Sun, 13 Nov 2022 13:35:57 +0000 (UTC) From: Ayoub Zaki <ayoub.zaki@embetrix.com> To: swupdate@googlegroups.com Cc: Ayoub Zaki <ayoub.zaki@embetrix.com> Subject: [swupdate] [PATCH] archive handler: add sync Date: Sun, 13 Nov 2022 14:35:54 +0100 Message-Id: <20221113133554.73318-1-ayoub.zaki@embetrix.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: ayoub.zaki@embetrix.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@embetrix.com header.s=rsa1 header.b="VblrK/AZ"; dkim=neutral (no key) header.i=@embetrix.com header.s=ed1 header.b="pBXxdx/e"; spf=neutral (google.com: 2a02:2350:5:501::1 is neither permitted nor denied by best guess record for domain of ayoub.zaki@embetrix.com) smtp.mailfrom=ayoub.zaki@embetrix.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
archive handler: add sync
|
expand
|
Hi Ayoub, On 13.11.22 14:35, Ayoub Zaki wrote: > libarchive makes usage of buffered files, add a sync() call after installing the archive file(s). > > Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com> > --- > handlers/archive_handler.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/handlers/archive_handler.c b/handlers/archive_handler.c > index e3a1463..0ca22ca 100644 > --- a/handlers/archive_handler.c > +++ b/handlers/archive_handler.c > @@ -380,6 +380,7 @@ out: > } > } > > + sync(); > free(DATADST_DIR); > free(FIFO); > Applied to -master, thanks ! Best regards, Stefano Babic
diff --git a/handlers/archive_handler.c b/handlers/archive_handler.c index e3a1463..0ca22ca 100644 --- a/handlers/archive_handler.c +++ b/handlers/archive_handler.c @@ -380,6 +380,7 @@ out: } } + sync(); free(DATADST_DIR); free(FIFO);
libarchive makes usage of buffered files, add a sync() call after installing the archive file(s). Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com> --- handlers/archive_handler.c | 1 + 1 file changed, 1 insertion(+)