aboutsummaryrefslogtreecommitdiff
path: root/metadata/policy_test.go
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-10-29 00:04:39 -0700
committerEric Biggers <ebiggers@google.com>2019-10-30 09:11:29 -0700
commitfe58e7236a3285e172733aeab0b136bec968ac4d (patch)
tree35dce6e49541c05c5a5713ba7af3f20fe0d8dd24 /metadata/policy_test.go
parentc7da2443d6ffa51727db09f8ef1df6aea8c7612c (diff)
filesystem: make link handling more robust
The previous patch fixed making linked protectors to /dev/root, by setting Mount.Device to the real device node rather than /dev/root. That's good, but it also hints that the linked protector handling is unnecessarily fragile, as it relies on the device node name matching exactly. The Linux kernel allows the same device to have multiple device nodes, and path comparisons are slow and error-prone in general. Change it to compare the device number instead.
Diffstat (limited to 'metadata/policy_test.go')
0 files changed, 0 insertions, 0 deletions