[Bug 277358] problem with gpart backup & restore

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 08 Feb 2025 17:33:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277358

--- Comment #1 from Christos Chatzaras <chris@cretaforce.gr> ---
In mfsBSD 13.1 the command `gpart backup nda0 | gpart restore -F nda1` creates
the same partition layout:

Code:
=>        40  7501476448  nda0  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)

=>        40  7501476448  nda1  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)


But the same command in mfsBSD 14.2 creates this layout:

=>        40  7501476448  nda0  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)

=>        34  7501476461  nda1  GPT  (3.5T)
          34           6        - free -  (3.0K)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         655        - free -  (328K)

-- 
You are receiving this mail because:
You are the assignee for the bug.