Skip to content

Instantly share code, notes, and snippets.

@heftig
Created June 17, 2010 08:52
Show Gist options
  • Save heftig/441874 to your computer and use it in GitHub Desktop.
Save heftig/441874 to your computer and use it in GitHub Desktop.
SUBSYSTEM!="block", GOTO="btrfs_scan_end"
ACTION!="add|change", GOTO="btrfs_scan_end"
ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/modprobe btrfs"
ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/btrfs device scan $env{DEVNAME}"
LABEL="btrfs_scan_end"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment