[PATCH] Add HFS / HFS+ file system type to fdisk

Marcelo Roberto Jimenez marcelo.jimenez at gmail.com
Tue Feb 11 15:10:36 UTC 2020


Hi,

I have been using the fdisk app of busybox, but I need it to recognize HFS
/ HFS+ partitions.

Is it possible to add the support? The following patch does the job.

Regards,
Marcelo.

---
 util-linux/fdisk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index e58cb0fd1..663e64866 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -344,6 +344,7 @@ static const char *const i386_sys_types[] = {
  "\xa8" "Darwin UFS",
  "\xa9" "NetBSD",
  "\xab" "Darwin boot",
+ "\xaf" "HFS / HFS+",
  "\xb7" "BSDI fs",
  "\xb8" "BSDI swap",
  "\xbe" "Solaris boot",
-- 
2.25.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200211/39f98d0a/attachment.html>


More information about the busybox mailing list