diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-14 00:50:10 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-04-16 01:37:33 +0000 |
commit | 88d34b4686a650dba89674aa302ab13c78e8cef0 (patch) | |
tree | 9668a98a5fa8086d13fb8606792d658305e5c82e | |
parent | 4d9a4f921c1a79d2d82aae3e104cac43537b1e2d (diff) | |
download | cmogstored-88d34b4686a650dba89674aa302ab13c78e8cef0.tar.gz |
Linux device-mapper names show up as 'dm-0', 'dm-1' and so on. This allows users to store MogileFS files on encrypted devices using dm-crypt and perhaps other, similar tools.
-rw-r--r-- | iostat_parser.rl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iostat_parser.rl b/iostat_parser.rl index 27ede88..10ab104 100644 --- a/iostat_parser.rl +++ b/iostat_parser.rl @@ -14,7 +14,9 @@ } fgoto main; }; - device_name = ([a-zA-Z0-9/]+){1,71} $ { + + # Linux device mapper: dm-N + device_name = ([a-zA-Z0-9/\-]+){1,71} $ { if (iostat->dev_tip < (sizeof(iostat->dev)-1)) iostat->dev[iostat->dev_tip++] = fc; }; |