Skip to content

Commit 2e41bf5

Browse files
authored
Merge pull request #404 from amissael95/fuse-main-log-addition
Fuse main log addition
2 parents 6e4f79f + efb2eb8 commit 2e41bf5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

messages/bin_ltfs/root.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ root:table {
159159
14120W:string { "Cannot access to directory %s, disabled index capture mode (%d)." }
160160
14121I:string { "Index will be captured at %s at update" }
161161
14122I:string { "Index will not be captured." }
162+
14123W:string { "The main function of FUSE returned error (%d)." }
162163

163164
// 14150 - 14199 are reserved for LE+
164165

src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,9 @@ int single_drive_main(struct fuse_args *args, struct ltfs_fuse_data *priv)
13351335
ltfsmsg(LTFS_INFO, 14112I);
13361336
ltfsmsg(LTFS_INFO, 14113I);
13371337
ret = fuse_main(args->argc, args->argv, &ltfs_ops, priv);
1338+
if (ret != 0) {
1339+
ltfsmsg(LTFS_WARN, 14123W, ret);
1340+
}
13381341

13391342
/* Setup signal handler again to terminate cleanly */
13401343
ret = ltfs_set_signal_handlers();

0 commit comments

Comments
 (0)