forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path61-lklfuse.rules
More file actions
19 lines (16 loc) · 825 Bytes
/
61-lklfuse.rules
File metadata and controls
19 lines (16 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SUBSYSTEM!="block", GOTO="lklfuse_end"
ENV{ID_BUS}!="usb", GOTO="lklfuse_end"
#TAG+="lklfuse-dbg-block-filter"
# XXX remove should be handled by systemd service ConditionPathExists for %k
# device node, but it doesn't appear to work, so manually stop.
ACTION=="remove", TAG+="lklfuse-dbg-got-remove", \
RUN+="/usr/bin/systemctl stop lklfuse-mount@%k", GOTO="lklfuse_end"
#TAG+="lklfuse-dbg-remove-filter"
# only support a subset of filesystems on USB devices for now. Btrfs omitted
# from the default set, as lklfuse lacks multi-device support.
ENV{ID_FS_TYPE}!="vfat|exfat|iso9660|udf|xfs|ext4|ext3|ext2", GOTO="lklfuse_end"
#TAG+="lklfuse-dbg-fs-filter"
ACTION=="add", TAG+="systemd", \
OWNER="lklfuse", GROUP="lklfuse", ENV{UDISKS_IGNORE}="1", \
ENV{SYSTEMD_WANTS}+="lklfuse-mount@%k.service"
LABEL="lklfuse_end"