From patchwork Mon May 13 00:59:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amol Vengurlekar X-Patchwork-Id: 1098606 X-Patchwork-Delegate: david.oberhollenzer@sigma-star.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MSryyrhC"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GrL8GI8e"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 452Mvb1RFSz9s00 for ; Mon, 13 May 2019 11:01:15 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=EFmPTyE7G9h67VGU7RkprsgLKCCJ50wKLc7sbJrIgeA=; b=MSr yyrhCzaKrF64qUpXQUtAgwz1UInbrxQnZ7eNMP7I0G4qM4muYil5d0eyE3EjiD+WtaVUbO89/Jxxi MexaNSnZZckKvivyKy3dbNnnFRMlhw9PLfOj+/8/JaViyhSBGEtENN8+Ms5EcNUaeHRX7Shf55273 beI0lCbjXbVAYZWFbncaOeIPA4liqnt2ypEak/krlmPCq+cqCBMjYJKtgasXxFy3dHhMydkKGgNQS nY3BwOhapD0mcMCQ4glp7q0dyEwYS1EvP/GCFL2INkY+bYE+cluWkP17zfWA7ksUTWcVZ8R3oucGB 6PmSMQJ7uAxm8jP3uRY8tntLa6kullQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hPzL3-0006Kx-Rf; Mon, 13 May 2019 01:01:09 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hPzL1-0006KY-1o for linux-mtd@lists.infradead.org; Mon, 13 May 2019 01:01:08 +0000 Received: by mail-pf1-x441.google.com with SMTP id y11so6218984pfm.13 for ; Sun, 12 May 2019 18:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=k/bhzTyPNIvIefKDz59YPmo/3t/+c2TzSeTHkjFw4ig=; b=GrL8GI8euWDIaBHfsmk35MrpEy3tL79Fghiz+3UnijRbU95sI4P8YVUjUChgAxssLQ Dm5D6ohn9SwR+wuNTJisw0a1ectN/awM9fFvnDASJB7jXIk6PlTNRqkDTua/w4k+VrA/ Dv1EqyzbKbsFePbyaFW0Ap3+hx7TdVYobyDMt0ecbvKCz+YrF04edECCYAVFixna8Hyv UaZ1ZE84p5kvo43CTV70yhQ2EzRtUgy8J8TIEyl0qaFcjBChm8ZJLaB00OinaALlOYym zBWnsDt+ZZNrSyPf4cAqG8fa1wNWHBT5YAcBY5Man2Wk/MFmpnmVNoBWN+BB90Z20HGw roHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=k/bhzTyPNIvIefKDz59YPmo/3t/+c2TzSeTHkjFw4ig=; b=c7xxBOjH3xnPWZSnpjvFfUOLgfgQ0WC3ZDvcx74z9hrbymYrX0Y1UcQ7X0hSbE8NZk b41RKgw/MKXLurRAIqksHtTx7MbzByAuUp+lpahKoxg6cDrAgBqicJm8CzsoKeuLN1Gc cJfz0RkLTnIaW00dT8vekX4w4wphIj2U/fl+v2hNwqfKJG5ZG7JqDBXwW03EsFElpihO AYuoPqILVMeuzJcNL3/7veKevXQq0WOV3oCiQXgfpUv7bszK/1SwBqVlUR6xpzUi7Okx CKOXtg5oRDYf/lvuBH9j7LjMdiiaI+RmxF1kEpx2B/jzEeg9BmgFrEPPl9PUpkzh+XF1 67/Q== X-Gm-Message-State: APjAAAW8I70l0lshHbwj2y8sndpg12jUHelaW8y5v7EHN8i691r6GzOE rDMFZT45cOm23hllAC+afTyncwWT X-Google-Smtp-Source: APXvYqznfJP3Fej7e4++GVGdVJ6ZQqoHbb0bBF1NIOhW0FP3ba1yeSgkQeg8DfAbkBGtxTEta/CYiw== X-Received: by 2002:a63:cf54:: with SMTP id b20mr27985674pgj.307.1557709265359; Sun, 12 May 2019 18:01:05 -0700 (PDT) Received: from amolsystem.hsd1.wa.comcast.net ([2601:600:9500:9a45:2da1:5e3f:dd49:27a5]) by smtp.gmail.com with ESMTPSA id g72sm28043546pfg.63.2019.05.12.18.01.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 May 2019 18:01:04 -0700 (PDT) From: Amol Vengurlekar X-Google-Original-From: Amol Vengurlekar To: linux-mtd@lists.infradead.org Subject: [PATCH] ubiformat: Dont ignore sequence number CLI option Date: Sun, 12 May 2019 17:59:19 -0700 Message-Id: <1557709159-26360-1-git-send-email-amol.sven@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190512_180107_122153_3A0DBA0E X-CRM114-Status: GOOD ( 13.23 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (amolsven[at]gmail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amol Vengurlekar MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Image sequence number for the UBI header can be specified for the ubiformat tool according to the documentation and the help message for ubiformat. The CLI option --image-seq for image sequence number is not supported. -Q option for image sequence number is silently ignored. This patch adds the CLI support for image sequence number. Signed-off-by: Amol Vengurlekar --- ubi-utils/ubiformat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubi-utils/ubiformat.c b/ubi-utils/ubiformat.c index aedb27b..a90627c 100644 --- a/ubi-utils/ubiformat.c +++ b/ubi-utils/ubiformat.c @@ -120,6 +120,7 @@ static const struct option long_options[] = { { .name = "ubi-ver", .has_arg = 1, .flag = NULL, .val = 'x' }, { .name = "help", .has_arg = 0, .flag = NULL, .val = 'h' }, { .name = "version", .has_arg = 0, .flag = NULL, .val = 'V' }, + { .name = "image-seq", .has_arg = 1, .flag = NULL, .val = 'Q' }, { NULL, 0, NULL, 0}, }; @@ -132,7 +133,7 @@ static int parse_opt(int argc, char * const argv[]) int key, error = 0; unsigned long int image_seq; - key = getopt_long(argc, argv, "nh?Vyqve:x:s:O:f:S:", long_options, NULL); + key = getopt_long(argc, argv, "nh?Vyqve:x:s:O:f:S:Q:", long_options, NULL); if (key == -1) break;