diff options
author | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2010-01-22 10:51:29 +0100 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2010-01-22 10:51:29 +0100 |
commit | c060b13314aadf3f60b887c726bb524d0d0ae0a7 (patch) | |
tree | 7474eee661d9d85f789908a43f695cf80068f7fe | |
parent | 61f573527edafcb41a6eca52d779d2744fe00c56 (diff) | |
download | multipath-tools-c060b13314aadf3f60b887c726bb524d0d0ae0a7.tar.gz multipath-tools-c060b13314aadf3f60b887c726bb524d0d0ae0a7.tar.bz2 multipath-tools-c060b13314aadf3f60b887c726bb524d0d0ae0a7.zip |
Add %z path wildcard to display path serial
-rw-r--r-- | libmultipath/print.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmultipath/print.c b/libmultipath/print.c index ba77b9c..10e5ce5 100644 --- a/libmultipath/print.c +++ b/libmultipath/print.c @@ -410,6 +410,12 @@ snprint_path_size (char * buff, size_t len, struct path * pp) } static int +snprint_path_serial (char * buff, size_t len, struct path * pp) +{ + return snprint_str(buff, len, pp->serial); +} + +static int snprint_path_checker (char * buff, size_t len, struct path * pp) { struct checker * c = &pp->checker; @@ -451,6 +457,7 @@ struct path_data pd[] = { {'C', "next_check", 0, snprint_next_check}, {'p', "pri", 0, snprint_pri}, {'S', "size", 0, snprint_path_size}, + {'z', "serial", 0, snprint_path_serial}, {0, NULL, 0 , NULL} }; |