Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs send -R -i aborts on identical snapshots #11121

Closed
KamilaBorowska opened this issue Oct 28, 2020 · 0 comments
Closed

zfs send -R -i aborts on identical snapshots #11121

KamilaBorowska opened this issue Oct 28, 2020 · 0 comments
Labels
Component: Send/Recv "zfs send/recv" feature Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@KamilaBorowska
Copy link

KamilaBorowska commented Oct 28, 2020

System information

Type Version/Name
Distribution Name NixOS
Distribution Version 20.09
Linux Kernel Linux xfix 5.4.72 #1-NixOS SMP Sat Oct 17 08:11:24 UTC 2020 x86_64 GNU/Linux
Architecture x86_64
ZFS Version 0.8.4-1
SPL Version 0.8.4-1

Describe the problem you're observing

Attempting to zfs send -R -i with the exact same snapshot causes an abort. With ZFS 0.8.4:

0 == nvlist_lookup_nvlist(nvfs, "snapprops", &snapprops)
ASSERT at libzfs_sendrecv.c:1382:dump_snapshot()

With ZFS 0.8.5:

0 == nvlist_lookup_nvlist(nvfs, "snapprops", &snapprops)
ASSERT at libzfs_sendrecv.c:1382:dump_snapshot()

With ZFS 2.0.0-rc4:

0 == nvlist_lookup_nvlist(nvfs, "snapprops", &snapprops)
ASSERT at libzfs_sendrecv.c:1050:dump_snapshot()

Describe how to reproduce the problem

Run the following NixOS test. Alternatively create two snapshots and try to zfs send -R -i the older one (attempting that with newer snapshot won't cause an abort).

import <nixpkgs/nixos/tests/make-test-python.nix> {
  machine = {
    networking.hostId = "deadbeef";
    boot.supportedFilesystems = [ "zfs" ];
  };

  testScript = ''
    machine.succeed(
        "truncate -s 512M part",
        "zpool create test-pool $PWD/part",
        "zfs snapshot test-pool@snap1",
        "zfs snapshot test-pool@snap2",
        "set -o pipefail; zfs send -R -i snap1 test-pool@snap1 | wc -c",
    )
  '';
}

Include any warning/errors/backtraces from the system logs

@KamilaBorowska KamilaBorowska added Status: Triage Needed New issue which needs to be triaged Type: Defect Incorrect behavior (e.g. crash, hang) labels Oct 28, 2020
@ghost ghost added Component: Send/Recv "zfs send/recv" feature and removed Status: Triage Needed New issue which needs to be triaged labels Sep 1, 2021
@ghost ghost self-assigned this Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Send/Recv "zfs send/recv" feature Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant