diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-14 00:50:10 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-05-11 11:28:55 +0000 |
commit | e247cd327850090dca3d500bc4abcafb3d098875 (patch) | |
tree | 50d5bc3f2156506314a7fcb6a5041b90e3d13d05 | |
parent | 27c299a123597729d011b4ec205acb0e0bc48b83 (diff) | |
download | cmogstored-e247cd327850090dca3d500bc4abcafb3d098875.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. (cherry picked from commit 88d34b4686a650dba89674aa302ab13c78e8cef0)
-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; }; |