From 80ceab90aa1eb27a37d1aeab98b19eb55067b616 Mon Sep 17 00:00:00 2001 From: Tony Lambiris Date: Sat, 6 Jul 2019 08:33:10 -0400 Subject: [PATCH] Add support for hfsplus file system --- disk/disk_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/disk/disk_linux.go b/disk/disk_linux.go index 415669f7..340f9730 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -47,6 +47,7 @@ const ( FUSE_SUPER_MAGIC = 0x65735546 FUTEXFS_SUPER_MAGIC = 0xBAD1DEA HFS_SUPER_MAGIC = 0x4244 + HFSPLUS_SUPER_MAGIC = 0x482b HOSTFS_SUPER_MAGIC = 0x00c0ffee HPFS_SUPER_MAGIC = 0xF995E849 HUGETLBFS_MAGIC = 0x958458f6 @@ -156,6 +157,7 @@ var fsTypeMap = map[int64]string{ GFS_SUPER_MAGIC: "gfs/gfs2", /* 0x1161970 remote */ GPFS_SUPER_MAGIC: "gpfs", /* 0x47504653 remote */ HFS_SUPER_MAGIC: "hfs", /* 0x4244 local */ + HFSPLUS_SUPER_MAGIC: "hfsplus", /* 0x482b local */ HPFS_SUPER_MAGIC: "hpfs", /* 0xF995E849 local */ HUGETLBFS_MAGIC: "hugetlbfs", /* 0x958458F6 local */ MTD_INODE_FS_SUPER_MAGIC: "inodefs", /* 0x11307854 local */