tools: acrn-crashlog: New apis to replace debugfs

This patch impletement apis with libext2fs, which are for dumping and
reading files or dirs in extfs.

Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com>
This commit is contained in:
Liu, Xinwu
2018-07-17 15:55:25 +08:00
committed by lijinxia
parent db05675f38
commit 134e79aca2
4 changed files with 435 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ static inline int file_exists(const char *filename)
return (stat(filename, &info) == 0);
}
static inline int directory_exists(char *path)
static inline int directory_exists(const char *path)
{
struct stat info;