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

Denys Vlasenko vda.linux at googlemail.com
Fri Feb 14 12:59:42 UTC 2020


Thanks, applied!

On Tue, Feb 11, 2020 at 4:11 PM Marcelo Roberto Jimenez
<marcelo.jimenez at gmail.com> wrote:
>
> 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
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list