marsadm: view warns if module is not loaded

This commit is contained in:
Thomas Schoebel-Theuer 2015-02-13 10:29:25 +01:00
parent d40f0d42e3
commit a1dbe268c2

View File

@ -4514,6 +4514,7 @@ sub do_all_res {
}
if ($cmd =~ m/^(view|pretty)/) {
lwarn "mars kernel module is not loaded\n" unless is_module_loaded();
do_all_res(\&view_cmd, $cmd, $res, @args);
finish_links();
exit($error_count);