From: Michal Nazarewicz Date: Wed, 27 Aug 2014 20:58:47 +0000 (+0200) Subject: tools: ffs-test: add compatibility code for old kernels X-Git-Tag: fixes-for-v3.18-merge-window~16^2~118^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9a4274699c6973f62979d664cbe7c9aca4f6a9a;p=pandora-kernel.git tools: ffs-test: add compatibility code for old kernels If ffs-test is used with a kernel prior to 3.14, which do not support the new descriptors format, it will fail when trying to write the descriptors. Add a function that converts the new descriptors to the legacy ones and use it to retry writing the descriptors using the legacy format. Also add ā€œ-lā€ flag to ffs-test which will cause the tool to never try the new format and instead immediatelly try the legacy one. This should be useful to test whether parsing of the old format still works on given 3.14+ kernel. Signed-off-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed