From patchwork Wed Apr 28 13:54:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1471183 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::43b; helo=mail-wr1-x43b.google.com; envelope-from=swupdate+bncbcxploxj6ikrbo6suwcamgqeozhgloy@googlegroups.com; receiver=) 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=BuTHuD7A; dkim-atps=neutral Received: from mail-wr1-x43b.google.com (mail-wr1-x43b.google.com [IPv6:2a00:1450:4864:20::43b]) (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 4FVgBC27HDz9sX2 for ; Wed, 28 Apr 2021 23:55:14 +1000 (AEST) Received: by mail-wr1-x43b.google.com with SMTP id 93-20020adf80e60000b0290106fab45006sf17886030wrl.20 for ; Wed, 28 Apr 2021 06:55:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619618108; cv=pass; d=google.com; s=arc-20160816; b=G17VtLqn6Wik/kiGVB+Hij4MN5PKZLGrNchNm42P3bBy5D4k4+oeWvicKin2P8ey/9 gaymQuk5X4T2E8uZ4ZurS5CZgfrF/293TRioJQ1nRF39sBXd/6JL9ik31EBi4o8617Hn c+wxEjIGRg7jlUBIq2ZHlTjpUYZA6VrVyrdU7VvyRjmnXw7iTnbB6QO6Jvw+moXQq8Xv tmGDp7IihPhqdaGLL5hGJPngMWq1XCyqntlhFomgVFtXp+qaIJXOBOlKrPnrJdGMYkUy UeCMYMw8c1P+JvS6JiqOlqul6Lr2mH/kb2pqkUN98YeBV5q4RWLW30ZuISu4lFMTVQ1T V7jQ== 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=UU5ejA9ao2l6ORrGxK5VJiW/Rt0+RxzwgrUa9P+GDTU=; b=CzEzXwCfv9OrWOZhnbvJY2PBLIHnONtF274sC22HDtKAfXKVwQU5Px8G/U0XOjZyg/ l+dFEFFk7TefHSzNlS6tcmdkn3g/B2yqLse1WBaTSlhxCMg6A3x77FKal7Y7tdWekmCg nwudSrajVRjOflYxwxkD8Fkf/SVpM43fDcbpW18USYb/ZAB/ccO+R7n32Nf/Vs6t3L0N 3KrOa2KmcSzuGipn5W0JZH4px6wkKzIAZ4XErRQad8kS/fOfkIxcnhAO2mbLgzYk8Bmz +q/OFkCCKub/T/1gh3thm292Pv4Q2HfkP82EVET2yrvUHzTyDcoUzP0JopH4xL/+JkJb SE8A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=LWtkKOEP; spf=pass (google.com: domain of sbabic@denx.de designates 85.214.62.61 as permitted sender) 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=UU5ejA9ao2l6ORrGxK5VJiW/Rt0+RxzwgrUa9P+GDTU=; b=BuTHuD7ANPyQ9WPLipPdzzRgi4STLINWQp6Ozh2wOxqWsS8iRUPRX2m7fYdyoGQikQ G4tNFP6w3Of2BH6D9jDZduUomuMOr0IOXh/zJ2/C1G8rNJB6vL0mm451DUlM5dM1s4iu JCe98fEuSJm6+Ov/egDYcwPC/tXJ5hZGPovWwf1YDf55aB1v4g5+Ty1VUiSBTH+j5RiS NPXuQV7PKyRPgvxrSoX3zXAN9MWIGrzLy/v87a4G4nhcb2IaxrRiXd2vbGovoOLYN3hb 7K2d3KwTKlnG6nDApSqVCNM0uNr12ykb4yf7FuXBdi8pU07u68Ho5m+e3nNkbHkFjc2Q CC6w== 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=UU5ejA9ao2l6ORrGxK5VJiW/Rt0+RxzwgrUa9P+GDTU=; b=hmq04ATi548ob8ddokhsigeKllrKDB1o5zdOwKikWRFFZRcrDQXzKv86YEgarQeYaI UwI2ZnIiDFa5N7qPv6/Z3NZta6PLp0IbMkQkInIjVvNRTNpL+9IYF5QmjRekjGUK0SGr 7xO/lCeO2HGN5PoJd4K/QBKYnru7cP+gqGzsFZpdcKm4JNiJ+W/Ha4fBLAzGtekxCn01 nIFXaW9yBlsbko0YGs7NEIO9SPINKwfYKAIcPgFKhyTpzIHnHNAm19SExhCwFT4vP5G/ iwR9zVERQNo4N0a6zq65xaL+tmN7MDIxjZl5nFkniHbd8l6TuCt8QQeWn0qAn9NMz0Kl PR3Q== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM530EwP+S3MKKO1Xtke8VUnAHkb4z3VJN3Wb8NwtlSxgYsyzjhgng f561hLREE9ZgD7rqpzCLqaQ= X-Google-Smtp-Source: ABdhPJxcVHiRr8ec+as5ZJ8QqYhc9Epnx/hVjfdAk3VwJBLgI3cfCtJ+hxqwX2w6jdc4jymJ+TcEhA== X-Received: by 2002:adf:c541:: with SMTP id s1mr36162347wrf.370.1619618107966; Wed, 28 Apr 2021 06:55:07 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:f68b:: with SMTP id v11ls1531372wrp.2.gmail; Wed, 28 Apr 2021 06:55:07 -0700 (PDT) X-Received: by 2002:adf:f707:: with SMTP id r7mr17720999wrp.54.1619618107036; Wed, 28 Apr 2021 06:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619618107; cv=none; d=google.com; s=arc-20160816; b=k/pxRAYF739x1QRTK/EIBBZ1nsmbNLw01J1qp6CN/zWusaZSbXZI1Zsd4hk0QP8SnI E4hMvfdYMy0mr5eKDS1SlZLDJNccT21R7GG2ol3xl7PnqDueiU3xmX4Ka7LGhyKtNy7y o29ikniSwJ6eJEf4mSgSWS1DiH+RrEbejhlwU28EJri5iOWhshkXxE/dNgytDSDDCVU0 1eo4SuJAiSw8Nf4LbGbwJqvQzx/Zgm6UgZCCd37cNEemfBGvFhb7J214vFxCFfQDAaJB oSfEwmbHNWvcFG0bMhdleF0Oy3dXErRgk/Gialzk9O5bz3aQUnf6qzVIl/UP4yMjRB6p RhQQ== 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; bh=NyOPU/XgjDELn9JisOzbkWwGAkIvlYlwWa1hg0Fzatc=; b=ehqsWG1G1LIN9trmA94lNe+v+h+C2gVt8IZVuO4UqCPTWfEvNII5kdmdLrxnYu3PR7 yrr7XsLujO2HHT0rNmmG+xS0R2gNqZ44DAtN3vzhpBBU9OlqBhG/31eH9/ABUh318Avd OLZ/Nyx5uvDBatwv3Qpr5CeD0sc7dwWwBvFlYPQtYqkOVkgeQ1BA8+AprM5xU7wzz8k/ jljAH1WkFCt/QnN08ZDjtBwWYn1H288QByCap6ZkraoFiN+6ZOF/Dch8mHjt+R/oc1xn NNm2O3QEbEGrPxwYPB/3HjNxLBza4OjLdE0YUvMS0s2OuAi+baPdXiXazjxfuQYbny6A 02Bg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=LWtkKOEP; spf=pass (google.com: domain of sbabic@denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=sbabic@denx.de Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by gmr-mx.google.com with ESMTPS id y16si1620679wrh.3.2021.04.28.06.55.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 06:55:06 -0700 (PDT) Received-SPF: pass (google.com: domain of sbabic@denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 7611982CAE for ; Wed, 28 Apr 2021 15:55:06 +0200 (CEST) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id E1F85182B79 for ; Wed, 28 Apr 2021 15:55:01 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 531) id B7FB81A8BC5; Wed, 28 Apr 2021 15:55:01 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 0/9] Improve filesystem support Date: Wed, 28 Apr 2021 15:54:50 +0200 Message-Id: <20210428135459.951203-1-sbabic@denx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=LWtkKOEP; spf=pass (google.com: domain of sbabic@denx.de designates 85.214.62.61 as permitted sender) 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: , This series add a generic interface to initialize the filesystem and extend to add extX support. FATFS was recently added. ext2 / ext3 / ext4 are supported. The filesystem is initialized using the default parameters (that is the default profile from mke2fs), and most options from mke2fs are dropped. Stefano Babic (9): Move fatfs to fs (filesystem) FATFS: constify input parameters diskpart: add a pause for rereading partitions Introduce a generic mkfile interface Format extX filesystem diskpart: add support for mke2fs all_handlers_defconfig: add mke2fs library ci: add e2fsprogs library for mke2fs doc: extend filesystem support in diskpart Makefile | 2 +- Makefile.flags | 4 + ci/setup.sh | 1 + configs/all_handlers_defconfig | 1 + doc/source/handlers.rst | 4 +- {fatfs => fs}/Config.in | 7 + {fatfs => fs}/Makefile | 1 + {fatfs => fs}/diskio.c | 2 +- {fatfs => fs}/diskio.h | 0 {fatfs => fs}/fat_fs.c | 4 +- {fatfs => fs}/ff.c | 0 {fatfs => fs}/ff.h | 2 +- {fatfs => fs}/ffconf.h | 0 fs/mke2fs.c | 1070 ++++++++++++++++++++++++++++++++ handlers/Config.in | 2 +- handlers/diskpart_handler.c | 106 ++-- include/fatfs_interface.h | 13 - include/fs_interface.h | 19 + 18 files changed, 1182 insertions(+), 56 deletions(-) rename {fatfs => fs}/Config.in (60%) rename {fatfs => fs}/Makefile (80%) rename {fatfs => fs}/diskio.c (98%) rename {fatfs => fs}/diskio.h (100%) rename {fatfs => fs}/fat_fs.c (86%) rename {fatfs => fs}/ff.c (100%) rename {fatfs => fs}/ff.h (99%) rename {fatfs => fs}/ffconf.h (100%) create mode 100644 fs/mke2fs.c delete mode 100644 include/fatfs_interface.h create mode 100644 include/fs_interface.h