From patchwork Wed Jul 1 09:40:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1320356 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::437; helo=mail-wr1-x437.google.com; envelope-from=swupdate+bncbcxploxj6ikrb65t6h3qkgqeqellwxy@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=LtP0KJCG; dkim-atps=neutral Received: from mail-wr1-x437.google.com (mail-wr1-x437.google.com [IPv6:2a00:1450:4864:20::437]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49xbmz4QfTz9sTV for ; Wed, 1 Jul 2020 19:40:17 +1000 (AEST) Received: by mail-wr1-x437.google.com with SMTP id s16sf6902399wrv.1 for ; Wed, 01 Jul 2020 02:40:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593596412; cv=pass; d=google.com; s=arc-20160816; b=dqpsFdjoU5tyYrXbF6VIGIpdbj5saCxtD/RJ39JEBzY/qQu2diJL//zpvy/WWnzc4w eWYI+PXKCrh4IU9UpFZwUFGipj70ZJmavZFCahz+SJ9VN/Ngb8yBNWKNKlhXceGe4DpL YKJ/ZERZt0Oi8nVDQxUjTiF4ZlyNhOC/FMLP7ujSUtl4/JkKJHvg8fP0xZbT5ZeZXj7A 5Qbq+6v8xJS4aBgvPH4KuxliXmSrAxUL4pKQ0WafoXE4ueRIU0LVKm/Z+vG3xgaXXCBN 7rgWXHQez1khrJZiWrmusn0eM3mncA5/MwmBzVRut+GLQrfRLd1Zi/tUs3PqC/qiiVWv OjgA== 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=1B/f9suJfj3ygFps0ucQAGIsmSNVY7NwNuI+ch0HsmA=; b=wCNyKup95ZoDH6toxnVVxhDa5TEQ9Z5LHymsnjwQLZh4IQlj1leRoAt11k+JtI7iU0 qna7lvHvCa7CX2XvTFmIlnIXzZrXAgfgd4advWJWlEfX+XFk7uobFSERjgNPeVZXMckd fOTK9UD7S8Xwi1OQ4RzfdyhbIyx1hBDpPuPkJZ1SrLdCKYvCF07jlNF3Yz/77Z9wRL10 8fzUtn6q+o2mYiv+eE8sglXkrVmZ+6DfufWWqpchHaoQwBJN6yvLZ/IzMjBy3TfWV/MO pYUwDfgv2O+I3SRV1eLs/r0QGZkRMuWTf56YLAYvBlNUNiZEnG7Xe+cE5GR+peK78W8e CJ8Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id: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=1B/f9suJfj3ygFps0ucQAGIsmSNVY7NwNuI+ch0HsmA=; b=LtP0KJCGlngHPqIkoyCY/G65dlNkQB4ICKpanBdnHpybqd3OSFSU7ESET4OVD/q82X Vyupg9iXYLL6u2Xr548mfTOlccr+X8sM+jBt9SZEetGEnDGPXC5ipLGDq11kRNWnsOy2 GpzF8O4IWyVbOljWUVfUtAd4F3jQZa6ANTPw0Kh49jfI0zN30gNUHtUC7XQCF6XA8Yp0 BPOYxVur+kavankL0Z2saviiQ2eYhi0EyUeUNrMsb3R+m+RkVBE4/s3Tkgz1X2Z02Ame Wbz/Jyvdyx0mOWEVKYyC1naqvUg/xGP4azST/Ea29KghLf7RljqVPxPJhBnWyLTnz2Tw JYvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :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=1B/f9suJfj3ygFps0ucQAGIsmSNVY7NwNuI+ch0HsmA=; b=K0h/OZTjTNK89XqbFQj3jwrV4ZwwVxfAFHpT0LNDXny6YLZbQiimCAz0pGRxgb9rov rGtZ3SUq7CgaAAySTWSs1zxzB8ysN/SaJ1msdXvuGpKVWRIv+qsxFkCP/XIBqK6dE8Ww T+S3LrGdEQY2Nolz0EFakGEGwM9+zUnbRkByiCkLZwmsjUMp4UpB2iXyc4srJ8lVIl2I oBUzRlX3RrdFd9e/Lre7GbYBEIE8hubau71Y/i77IcuwOozplhQqxi+S/iZQaLjsBnBK vCeVB1Gdx6C+M296nw6idH0u8xMky6X0/89gW+WSbXi17oVO28b0V3suZX/KM0SW7qCc Xqhg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532CyOJZuMBB2VeRvmoJpmPN9UHtHlc8xf6z5+eEnd5u1V+oZ1Cd 1Rxi8saY9qa62Ab87tAquqQ= X-Google-Smtp-Source: ABdhPJxRn80e+esOAauf1DE+rLolXUbBsopLEEXiv00TOsr0rD2j36fgWpjDHys4rWbzsWvyGcgWNw== X-Received: by 2002:adf:d0d0:: with SMTP id z16mr27226046wrh.95.1593596412516; Wed, 01 Jul 2020 02:40:12 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:6507:: with SMTP id x7ls2500743wru.0.gmail; Wed, 01 Jul 2020 02:40:11 -0700 (PDT) X-Received: by 2002:a5d:5490:: with SMTP id h16mr27670058wrv.394.1593596411287; Wed, 01 Jul 2020 02:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593596411; cv=none; d=google.com; s=arc-20160816; b=MwUD9t80WrrjtbN36UEJOKKohvOj5mwoG+iKhqpGZv0y/TJQ7YZpb9JtLt0RwYbr5L aGXlac9egjUsiKPZedRVCaZu9z8jUUH140LzovgRZlk3F0RrTPx1tPZ0OGULDmAFim2x UPkHyPP5m7jHz7Wz1pnAh4z/nrXfS1so7hUHDny9U+NOnicajTW3xxgv2B/51X3QkC2n xHikf8ZQnYEDU8zBjWPRFAVG2qmd243e0n7ljM/5RfPmNXroS34QT56Wqqc15PONuAf8 0VE72ygig3rvhH7S5Fhjl+X2rk146HmSGiqdYpF4xRZfUtS7vZrIY41x7FR48jE16Jet q9dg== 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; bh=Ts6aN1kKwf1mVAKrNHznYsFu9VIER6ULH5n+Adf7Bz4=; b=iAgTNBmUvGr7Fhd0HISjikLPqfxXHsZzOkMUzc/0k9/fwHQxdxFzopZ/5kaj/Jj4kL 4O7OYLxr556mdfHR+YZKJX7a82rd3aF7agbO92fjgaRSr76zUScoBJUbvLMJnmfz98Ff NSxrS19LzIWlP7ClKDZ97pNep3h6gLKV83DKD6F7IoTu6gNebGRfRAmqoC7KGO196jfS dB27HjpamIdJGFJq3BaDcHlcIkGmV1l6saO6hJvBhX3/wwqUgNF5C+INqaSC7pX+eT6O l9RA55aSPUNpWoaiQpGJOOkN1aPygPIGRbSj7Skk01JyC9wuBJG8RoJKdM8CasxIscIm Kv4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id l4si283559wrw.2.2020.07.01.02.40.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2020 02:40:11 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 49xbmq093rz1qtyM; Wed, 1 Jul 2020 11:40:11 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 49xbmp74gVz1r56m; Wed, 1 Jul 2020 11:40:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 4v0d0X_ecc-D; Wed, 1 Jul 2020 11:40:10 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 1 Jul 2020 11:40:10 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 03C46454050A; Wed, 1 Jul 2020 11:40:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id hI3iE3mC2Bbh; Wed, 1 Jul 2020 11:40:07 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id 7D9874540310; Wed, 1 Jul 2020 11:40:07 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] raw handler: add more details in case of error Date: Wed, 1 Jul 2020 11:40:05 +0200 Message-Id: <20200701094005.3881937-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Reports the error from OS to better investigate issues on filesystems. Signed-off-by: Stefano Babic --- handlers/raw_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/raw_handler.c b/handlers/raw_handler.c index 21bc779..ab210c0 100644 --- a/handlers/raw_handler.c +++ b/handlers/raw_handler.c @@ -208,8 +208,8 @@ static int install_raw_file(struct img_type *img, if (use_mount) { ret = swupdate_mount(img->device, DATADST_DIR, img->filesystem); if (ret) { - ERROR("Device %s with filesystem %s cannot be mounted", - img->device, img->filesystem); + ERROR("Device %s with filesystem %s cannot be mounted: %s", + img->device, img->filesystem, strerror(errno)); return -1; }