Files
xen/tools/libfsimage/check-libext2fs
T
Tim Deegan cddc1d5a09 Add libfsimage, a C library for reading files from filesystem images.
Initial support is provided for Solaris UFS, ext2 (both using libext2fs
and not), and reiserfs.

Signed-off-by: John Levon <john.levon@sun.com>
2006-11-09 14:09:53 +00:00

22 lines
248 B
Bash
Executable File

#!/bin/bash
cat >ext2-test.c <<EOF
#include <ext2fs/ext2fs.h>
int main()
{
ext2fs_open2;
}
EOF
gcc -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
if [ $? = 0 ]; then
echo ext2fs-lib
else
echo ext2fs
fi
rm -f ext2-test ext2-test.c
exit 0