All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gao Xiang via Linux-erofs <linux-erofs@lists.ozlabs.org>
To: linux-erofs@lists.ozlabs.org
Subject: [WIP] [PATCH v3 08/12] erofs-utils: fuse: move erofs_init() to main.c
Date: Mon,  2 Nov 2020 23:55:54 +0800	[thread overview]
Message-ID: <20201102155558.1995-9-hsiangkao@aol.com> (raw)
In-Reply-To: <20201102155558.1995-1-hsiangkao@aol.com>

(will fold into the original patch.)

Signed-off-by: Gao Xiang <hsiangkao@aol.com>
---
 fuse/init.c | 10 ----------
 fuse/main.c | 12 ++++++++++++
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/fuse/init.c b/fuse/init.c
index d67c7f0dd298..a5694beaf519 100644
--- a/fuse/init.c
+++ b/fuse/init.c
@@ -83,13 +83,3 @@ int erofs_read_superblock(void)
 	return 0;
 }
 
-void *erofs_init(struct fuse_conn_info *info)
-{
-	erofs_info("Using FUSE protocol %d.%d", info->proto_major, info->proto_minor);
-
-	if (inode_init(sbi.root_nid) != 0) {
-		erofs_err("inode initialization failed");
-		abort();
-	}
-	return NULL;
-}
diff --git a/fuse/main.c b/fuse/main.c
index fed4488081d8..30e4839bdcb4 100644
--- a/fuse/main.c
+++ b/fuse/main.c
@@ -13,6 +13,7 @@
 
 #include "erofs/print.h"
 #include "init.h"
+#include "namei.h"
 #include "read.h"
 #include "getattr.h"
 #include "open.h"
@@ -115,6 +116,17 @@ static void signal_handle_sigsegv(int signal)
 	abort();
 }
 
+void *erofs_init(struct fuse_conn_info *info)
+{
+	erofs_info("Using FUSE protocol %d.%d", info->proto_major, info->proto_minor);
+
+	if (inode_init(sbi.root_nid) != 0) {
+		erofs_err("inode initialization failed");
+		abort();
+	}
+	return NULL;
+}
+
 static struct fuse_operations erofs_ops = {
 	.readlink = erofs_readlink,
 	.getattr = erofs_getattr,
-- 
2.24.0


  parent reply	other threads:[~2020-11-02 15:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20201102155558.1995-1-hsiangkao.ref@aol.com>
2020-11-02 15:55 ` [WIP] [PATCH v3 00/12] erofs-utils: introduce fuse implementation Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 01/12] " Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 02/12] erofs-utils: fuse: add special file support Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 03/12] erofs-utils: fuse: add compressed " Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 04/12] erofs-utils: fuse: refactor raw data logic Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 05/12] erofs-utils: fuse: kill sbk Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 06/12] erofs-utils: fuse: kill nid2addr, addr2nid Gao Xiang via Linux-erofs
2020-11-02 15:55   ` [WIP] [PATCH v3 07/12] erofs-utils: fuse: kill erofs_get_root_nid() Gao Xiang via Linux-erofs
2020-11-02 15:55   ` Gao Xiang via Linux-erofs [this message]
2020-11-02 15:55   ` [WIP] [PATCH v3 09/12] erofs-utils: fuse: move superblock logic into lib/ Gao Xiang via Linux-erofs
2020-11-02 15:59     ` [WIP] [PATCH v3 10/12] erofs-utils: fuse: kill getattr.c Gao Xiang via Linux-erofs
2020-11-02 15:59       ` [WIP] [PATCH v3 11/12] erofs-utils: fuse: kill open.c Gao Xiang via Linux-erofs
2020-11-02 15:59       ` [WIP] [PATCH v3 12/12] erofs-utils: fuse: kill incomplate dcache Gao Xiang via Linux-erofs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201102155558.1995-9-hsiangkao@aol.com \
    --to=linux-erofs@lists.ozlabs.org \
    --cc=hsiangkao@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.