commit | 0f0e3487c46947c6eee21cce1c77aa7e2e3b302a | [log] [tgz] |
---|---|---|
author | Cyril Hrubis <chrubis@suse.cz> | Thu Feb 27 16:08:04 2014 +0100 |
committer | Cyril Hrubis <chrubis@suse.cz> | Thu Feb 27 16:30:42 2014 +0100 |
tree | 57bfb09164e1ce0b1f97d16c0f048e17968870b5 | |
parent | 3a049e6d77ad15d61057766cd34822e486f3ebe3 [diff] |
lib: Rewrite FS type detection code + docs Rewrite fs detection code to make it easily expandable. Previously you had to add a function tst_is_cwd_foo() and yet another if tst_is_cwd_foo() then tst_brkm() block into each testcase. Now all you need is to add a fs magic constant into tst_fs_type.h and case into a switch (tst_fs_type()) block into each testcase. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>