ltfs returns 0 even on failed mount (or other fuse errors)
@Magic-Kowel ci sta già lavorando.
Dal 25/8/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
ltfs returns 0 even on a failed mount, as it ignores the return code of fuse_main() on https://github.com/LinearTapeFileSystem/ltfs/blob/adb37220d74e0bdd06dfdf9602a84fcd2f0d82e2/src/main.c#L1337-L1340
The return code of fuse_main() is overwritten a few lines below, so the error is never propagated https://github.com/LinearTapeFileSystem/ltfs/blob/adb37220d74e0bdd06dfdf9602a84fcd2f0d82e2/src/main.c#L1343
I would suggest replacing LTFS_WARN with LTFS_ERR and adding a return ret; right after the ltfsmsg to fix this.
To Reproduce
mkdir /tmp/ltfs
touch /tmp/ltfs/foo
ltfs -o devname=9A700L0077 /tmp/ltfs
echo $?
- Lingua principale
- C
- Stelle
- 352
- Fork
- 110
- Merge medio
- 2h 50m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LinearTapeFileSystem/ltfs
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
LinearTapeFileSystem/ltfs#647 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
LinearTapeFileSystem/ltfs#645 · 3 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
LinearTapeFileSystem/ltfs#643 ·
-
H/W issue HBA Report Investigating
LinearTapeFileSystem/ltfs#640 · 7 commenti · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
LinearTapeFileSystem/ltfs#638 · 2 commenti ·
Tutte le issue di LinearTapeFileSystem/ltfs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NVIDIA/k8s-device-plugin#2061 · 1 commento ·
-
task
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vsanthanam/JBird#429 ·