From 85086fb88953f1fef09bab5322080d086523bece Mon Sep 17 00:00:00 2001
From: isciurus <isciurus@gmail.com>
Date: Tue, 22 Jan 2019 22:32:15 -0800
Subject: [PATCH] Initial version of XFS support.

Implemented: blkstat, blkls, blkcat, istat, ils, icat, fls, fsstat.

Unsupported XFS features (yet): very large inodes (XFS_DINODE_FMT_BTREE), real-time devices, journaling log
---
 tsk/fs/fs_open.c  | 5 ++++-
 tsk/fs/fs_types.c | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tsk/fs/fs_open.c b/tsk/fs/fs_open.c
index 2772c7732..0e477f81e 100644
--- a/tsk/fs/fs_open.c
+++ b/tsk/fs/fs_open.c
@@ -285,6 +285,9 @@ tsk_fs_open_img_decrypt(TSK_IMG_INFO * a_img_info, TSK_OFF_T a_offset,
     else if (TSK_FS_TYPE_ISXFS(a_ftype)) {
       return xfs_open(a_img_info, a_offset, a_ftype, 0);
     }
+    else if (TSK_FS_TYPE_ISXFS(a_ftype)) {
+      return xfs_open(a_img_info, a_offset, a_ftype, 0);
+    }
     tsk_error_reset();
     tsk_error_set_errno(TSK_ERR_FS_UNSUPTYPE);
     tsk_error_set_errstr("%X", (int) a_ftype);
@@ -335,7 +338,7 @@ tsk_fs_free(TSK_FS_INFO * a_fs_info)
         a_fs_info->list_inum_named = NULL;
     }
 
-    /* we should probably get the lock, but we're 
+    /* we should probably get the lock, but we're
      * about to kill the entire object so there are
      * bigger problems if another thread is still
      * using the fs */
diff --git a/tsk/fs/fs_types.c b/tsk/fs/fs_types.c
index 4f10149db..f183739e0 100644
--- a/tsk/fs/fs_types.c
+++ b/tsk/fs/fs_types.c
@@ -1,6 +1,6 @@
 /*
 ** fs_types
-** The Sleuth Kit 
+** The Sleuth Kit
 **
 ** Identify the type of file system being used
 **
-- 
GitLab