Commit 4ecf1f9
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 f57fb30 commit 4ecf1f9
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 | | |
| |||
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
122 | | - | |
123 | | - | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
829 | 832 | | |
830 | 833 | | |
831 | 834 | | |
| 835 | + | |
| 836 | + | |
832 | 837 | | |
833 | 838 | | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
834 | 845 | | |
835 | 846 | | |
836 | 847 | | |
| |||
841 | 852 | | |
842 | 853 | | |
843 | 854 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | 855 | | |
848 | 856 | | |
849 | 857 | | |
850 | | - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
851 | 869 | | |
852 | 870 | | |
853 | 871 | | |
| |||
0 commit comments