Signed-off-by: Andras Elso <elso.andras@gmail.com>
Based on patches from Laszlo Boszormenyi (GCS) <gcs@debian.hu>. Signed-off-by: Sage Weil <sage@inktank.com>