Commit 71b307d
committed
handle FUSE 2 command-line options that changed or disappeared in FUSE 3
- Accept and ignore -f/--foreground: pyfuse3 always runs in the
foreground since the event loop is managed by the caller via trio
- Silently drop 'nonempty': FUSE 3 removed this option; mounting over
a non-empty directory is unconditionally allowed
- Intercept entry_timeout=N and attr_timeout=N: these are no longer
FUSE mount options in FUSE 3; they are per-entry fields in
EntryAttributes, so parse them into globals used at entry creation
time instead of forwarding them to pyfuse3.init()
This makes the existing systemd ExecStart line work unchanged:
gpiod-sysfs-proxy /sys/class/gpio -f -o nonempty -o allow_other \
-o default_permissions -o entry_timeout=0 -o attr_timeout=0
Signed-off-by: Christopher Obbard <christopher.obbard@linaro.org>1 parent 9e986c3 commit 71b307d
1 file changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
119 | | - | |
120 | | - | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
825 | 828 | | |
826 | 829 | | |
827 | 830 | | |
| 831 | + | |
| 832 | + | |
828 | 833 | | |
829 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
830 | 841 | | |
831 | 842 | | |
832 | 843 | | |
| |||
837 | 848 | | |
838 | 849 | | |
839 | 850 | | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | 851 | | |
844 | 852 | | |
845 | 853 | | |
846 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
847 | 865 | | |
848 | 866 | | |
849 | 867 | | |
| |||
0 commit comments