Message ID | 20241030163957.2822282-4-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBD2ZDGN6SEKRBY6CRG4QMGQERXCDLJI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=20230601 header.b=SdxxAfhS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::137; helo=mail-lf1-x137.google.com; envelope-from=swupdate+bncbd2zdgn6sekrby6crg4qmgqerxcdlji@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x137.google.com (mail-lf1-x137.google.com [IPv6:2a00:1450:4864:20::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XdtCF3PWwz1xwK for <incoming@patchwork.ozlabs.org>; Thu, 31 Oct 2024 03:40:08 +1100 (AEDT) Received: by mail-lf1-x137.google.com with SMTP id 2adb3069b0e04-539e5f9df25sf31644e87.0 for <incoming@patchwork.ozlabs.org>; Wed, 30 Oct 2024 09:40:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1730306405; cv=pass; d=google.com; s=arc-20240605; b=h0hv4HtGHy5TjLT32fa1d8Zn28nVVSmk6eul5pUBW0xJPruBBv16XSdaePN8xdaXTz s1Bno/YdaEgwsl7XjBtNniYvACTjdq5k9L+a/mi18x9wDvGyoYh4YPcrVE8OAxGSwYVr ljIoatBf/JhHtMLD8oxL7390cZEtbswnKRttzaCFTZhtXhl8SLZUtpop8YAZzLTMXoF+ n9yUUUFBALeBznVoH6cUKlImty2GnZEK6uIdh6Fj2AJ8Isuit0gkd1sVgOYLJbJ2yJ+o G9vGaiXbMbL9v6bJMV0y2i+T7mLeNy7lJWCVPKKBU7kx7ccN+Bp+B7meMGMH7cgbH+C2 po5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=ED+aGZuxKDrJecrv6dk5rFVLM/sL6MFvC7pmffSgq7s=; fh=C6xeuApbyruMJPhAvi1Q9evdK3q5JQzmA5WJCgsFUZY=; b=P5PD7vK9m/aLILJetFyGrSqH3uks9kurL4M/rtfu783u0fmBrCF3ZqY9kAONGU+5j6 ZYs+bPXefOsK+TohmusNHMABhSDnMw+SrchgHBnhvpy1KgMolWuh22uH8BkJzvo1JvUq iOd3j283tqjmjYWDxHSDsSu2h9Q2L/X6Dvh0IliS8pWbLSu+BX08y/kwQK8cpSTWaxYf Gj1ONYx9jW9tlPt9kH5Op1ntRwd6weg+jko0PI0DmwHafttACsJ5mLouPVzk2LxLz79f E4dWhwV0ZTkud7wK+G2YYoVVsZDp27byxVupR58h4W2HhkNLgig4NLDTGmCr40Incgp7 DgMw==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=ktsGspNz; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.134 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1730306405; x=1730911205; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=ED+aGZuxKDrJecrv6dk5rFVLM/sL6MFvC7pmffSgq7s=; b=SdxxAfhS6RcIzTRLTwhRktNwSaeWIiVlNARrZKNtTguPDIOuErx9MGgIPVtKYPaIJE wi4pKUB5jKObjFu7Cw0oAZYVhW1k9BxBAjx5DPOYnOnw4fe0HQDMqZnwG/gBj0vCeDCd cR/5tRzHZDR/2jfohjBfbAM/qcm/5OfKgb7wBgg46pBFlTuid21hxgyuKBL+4tjcqDFe J9W5twz4cotC9kaeMOp5oKwZNxkYzedTSDhcBdJTWhBRha70NslCrAhh2cVvNY1Dz4qC aBETYOWDb9cv0Nq4SfyijkiGZEB+0IncvddpI9mkusuzoVS5DZnEt8dy9wciBXhKOIjl MBfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730306405; x=1730911205; 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 :ui-outboundreport:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=ED+aGZuxKDrJecrv6dk5rFVLM/sL6MFvC7pmffSgq7s=; b=Qq5IH8fz49a4vQ9pIFU1QRCQCs467EIopHnljKvWnbqWiKsm0YJwpjhCu7yVoQB567 ELRmGhMGbar3t3Zo2PsYQrOj79D31mMHqRt4BzAM8lyI75YU+xSZFoOv2B2ac6vSf8sx Jlye4/MgMguUu7aLKINRJxc5NSgomPWmBx0FsOz6BiKdFpOGsouh3BAD2b3JwrsJLzks oqevZd7YO8AOP1xwUDg7hS3awBl04qiiD4xt4oEJtxPGco35EOacJiEEwVz7/mM4EVKN UoewToYuFTVoSckiqO1DpQozwOGQe6nCKD32fkEXGvHlnQij6eTHUDfyV/4nUFW5gS7t 0szg== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWv3qAMod9OPFuR7N0JQuXlLAmsksdCdD0uAEpLYPy4C7wjef1msDXOoHVTko8baHJAIl+AYojhig==@patchwork.ozlabs.org X-Gm-Message-State: AOJu0Yx4KhOJ8iytNoGr9p1QVQY00nhaU2r4VKMZqBIEZcYmRONMcgf/ KVqyLPshR8VGPf7eHfnjZVjDDn8E/Uh5zhbsbfOQWZYSoiQY08Du X-Google-Smtp-Source: AGHT+IEE7hTZ6GnJl0cHc6MenRN/1MgOGPKDZui5lUz8bRWIzRwZycb4cH2g2aM93dnhxwACoTrppw== X-Received: by 2002:a05:6512:b1a:b0:539:efdb:4324 with SMTP id 2adb3069b0e04-53b348d31f9mr8873463e87.21.1730306404311; Wed, 30 Oct 2024 09:40:04 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:31cd:b0:53c:7504:2ddc with SMTP id 2adb3069b0e04-53c794f330els37388e87.1.-pod-prod-08-eu; Wed, 30 Oct 2024 09:40:01 -0700 (PDT) X-Received: by 2002:a05:6512:158d:b0:539:f675:84d7 with SMTP id 2adb3069b0e04-53b348e7218mr8530602e87.32.1730306400599; Wed, 30 Oct 2024 09:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1730306400; cv=none; d=google.com; s=arc-20240605; b=caS8NChxhwhc58krjNYvJ1lEw1ArVqJ33nTUH5nUlccvdfCMCpk0xphiPb/v98gJXL +ZYHx5Qm/U4fhsM6L+sq8vKe1IITljJm/fWP/1QH9Z700CC+hhNsnMUmemo7fY+2kJal qx6NOlCZD8SQtuLTzSN8z6Z+NCdSjyBKZzLmcJZZKDGS1p4jtYScxl5TmbJtmIVOaFT7 AYEe6ymSfosv1Zx1Y0KZ0XFGXY9VP5fuYyz6JjwBq/1rhNLY081Log5oeBrJqlchF07S eg2F69Kz224ZAOgv1XVz9yQ7QatZf+W2W5aSoxsI0SJetoTC1OWkPBDTOp4N6Ssd/+1d LfgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=ui-outboundreport:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=xUslUQxjcvXNoIEqJA0MNCnlLl+bDeqM6UFOY9BExRo=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=iMe4rEECgngeA7gZpzIxC/lPBOPQuvgPjc+4SOBtouDIY0dHAFCwtz5yDjfAh8lIa1 fa6EqZt79hPg3bdD+eh2Yk9s7q6+FwAhxf3QzORyx+WeL4MarVx/d1WMN3MNfg9ioBDt MgFWjCyaiOytjQ7byJRtuOKuSFiNjqli01iVLNTDVQOxOPPzpgUbiHgS+0baV0uBaD+7 +AbQm4qiCe04OYo2yoDd9Fyzss3NQBJZLFa3CTYg4ydXWCmpyZ7Apm7MrS8pAXbMR37F RcHQHR7D1ufo7agk1jzztCcTuBzbN/3kwLeVFBtGIrLVEBChgbxVCXqNEPQCa+7Q8S5m eYlA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=ktsGspNz; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.134 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.134]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-53bb8191b7csi48268e87.1.2024.10.30.09.40.00 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 09:40:00 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.134 as permitted sender) client-ip=212.227.126.134; X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MhUQ7-1tjfPo1ta7-00p2M7; Wed, 30 Oct 2024 17:39:59 +0100 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH V2 03/10] Cleanup: use bool instead of int for mount option Date: Wed, 30 Oct 2024 17:39:50 +0100 Message-Id: <20241030163957.2822282-4-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241030163957.2822282-1-stefano.babic@swupdate.org> References: <20241030163957.2822282-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:M8uWvHCxhu+QQ10u9gBneXFAktI8ou+t4Pcaq+s2QFKYPsxZa4+ p5EYjaIQB5sTVELl1YtEItG1NpVTO7fEeVfBMTb6qCeph2ZytPU/Sz062RZ2+w7gMn2oF8F 9srgM+8tYKU/kA5TW11NyjopjM4apefpXc6B8dhs/H6ho+HDHIe4w+buiKKFwoIOZC7LAx2 T3SSCp+J8IhlieIHzZBvQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:v2o2PBAzTsY=;8/uF5FpIFOGYN1/xcUrofCLbkiO R+1xGqIf7HZcRRl0Xghh2rTiochsttUSGjO5nkZ9JKrzu5ET8tGoXgW7nPqwL/Odg7KRJczmt Iz2mamTvqoTVpOkxedPdg3DJOyDcBQh+lV/nGlzAr/6k7fPKIrsfd+ForrJZTnHZ1g3gYVREl 9ipVuYWwu5tSV5tQX9aXFE4iHcR565gN7bJn0pco1H6JjEkQFeRtdF0XjzOFuLtrMiQNbDHYc h2VK/Ox1ZTER6H+kwCqwxB2dO6kkU4Vpit9RGfyLWJ+umU0oSEgVeI8zsBMVqhaXTOVZSzV9N ZYKCa88WipFqs2yNeDHMlM8xrhG+xcKP5TDoS6MkH2zBdTgoyIL+U7CzkAA2rHfVwzefy5qsh mz9Z9vPkyf5dmafoGmrir+z6HFuChspLYMcXaYvoV9hMO9kl9UWoCJcgG2bNS5RbPwwfnXfrn 50BKebIpvd8HYj5Veci/p3h7HlNG5aIunnJd5JYLKNTEgC32sraqpaPMabK2oSnMm4M7OkDs/ I84NYnUW2OntvB77LWrkPr9Crmko0kljkO1Y6xLNAkGPjAhsss/eiKOdUmP4XDW2Eq++cWqfD 4S6pYnUVnvN2Q9BkJlSWB7oJTVba4Ab34/Jwou5JWBQ+OY3oHVOV3DQejl3sqKborEUP/3to+ pt6bjokT430lgqfK1lm+hQBx10+rCPaqJ37gwi8iIHcuCznJF49tcjmEBEMjjMzMWbh0R7rJa vfyFt1sx8keaSVNOWOa1lA/rnYLYL5BAg== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=ktsGspNz; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.134 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org 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 |
Introduce BTRFS Snapshot Handler
|
expand
|
diff --git a/handlers/archive_handler.c b/handlers/archive_handler.c index 6dee6ae5..4ef461ca 100644 --- a/handlers/archive_handler.c +++ b/handlers/archive_handler.c @@ -233,7 +233,7 @@ static int install_archive_image(struct img_type *img, char pwd[256] = "\0"; struct extract_data tf; pthread_attr_t attr; - int use_mount = (strlen(img->device) && strlen(img->filesystem)) ? 1 : 0; + bool use_mount = (strlen(img->device) && strlen(img->filesystem)) ? true : false; int is_mounted = 0; int exitval = -EFAULT; char *DATADST_DIR = NULL; diff --git a/handlers/raw_handler.c b/handlers/raw_handler.c index a68b3ed3..177ada2c 100644 --- a/handlers/raw_handler.c +++ b/handlers/raw_handler.c @@ -154,7 +154,7 @@ static int install_raw_file(struct img_type *img, int fdout = -1; int ret = -1; int cleanup_ret = 0; - int use_mount = (strlen(img->device) && strlen(img->filesystem)) ? 1 : 0; + bool use_mount = (strlen(img->device) && strlen(img->filesystem)) ? true : false; char* DATADST_DIR = NULL; if (strlen(img->path) == 0) {
Replace in archive and raw handler. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- handlers/archive_handler.c | 2 +- handlers/raw_handler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.34.1