From nobody Sun Mar 5 12:23:37 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PV18V0Q2rz3wR7w for ; Sun, 5 Mar 2023 12:23:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PV18T65SNz4P67 for ; Sun, 5 Mar 2023 12:23:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678019017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tiFbbOKvrYKyTi1H5YiRHXmJ06RH98kpJu0FoWQdAAs=; b=hdsAkYEC4Wy/rMekuvItSWOqu4rid3MBbom4LNZkCRqaKyIgNE/NRJBqUE2pOzcWcCWLMI 8CZT1HFlODgEq7Ol5Rsckxx6ycz8mvqztLF7YV1/+fl4IIUzbhnp1m38HdmikeJURyfFjU /fzfJI3ALyWf0j8bd4IL+A2B7dp7PpemcBMMLhFuXibKIN8pst+vNOTr4rRfvqEsFNBqli BXcoM6asR7X6yGYW6zlzEnXLs4NfZVLmFiF2KVjdifC4MSYPCSTLY5CzXuZUuxI+5lz1Jk tcCrkmrVl0VtejmcRC6jogy6w17VBF9SCiM4LSreKP+Ru4YeCDfQBNGWK7K4kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678019017; a=rsa-sha256; cv=none; b=oaarQoxFRP9zBX4RA5r0gKoll/uWCgDo81iANHHEiyORSSWjdxBV8huhXWsPvcNGjoWPWs 61G0qywpgFzqWH01/3TDiNood73CSwCgXM3dxXCcYUNZPsJ4RPwqkX9MJByKCMhwnADsUT BvCUTj/sk4lUt2vOePH/rIBP5SKZfbRvQ/b9e7/sWj3QC0wWt8vmP9bUDVkwRNbYMJlLCY JNUQI35MlFgyd/cHelwiBkrY+fbiOSNXiKGSGH6WNxdLiDId7a7MgPq9iyGWONNzErtj6g e7zi5jV41YUvzU1woVkR322Hs/evs/R675TRomnArKHs9rwiu7dAXXxU2hwKsA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PV18T5B7szLbM for ; Sun, 5 Mar 2023 12:23:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 325CNbd1045045 for ; Sun, 5 Mar 2023 12:23:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 325CNbL6045044 for bugs@FreeBSD.org; Sun, 5 Mar 2023 12:23:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260160] zfs jailed: snapshots not accessible Date: Sun, 05 Mar 2023 12:23:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kr0m@alfaexploit.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260160 Juan Jos=C3=A9 Ivars Poquet changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kr0m@alfaexploit.com --- Comment #31 from Juan Jos=C3=A9 Ivars Poquet --- (In reply to Jim Long from comment #30) Using kernel13.2 I can manage dataset from jail, mount/snapshot it, but I c= an't umount snapshots nor destroy snapshots. I can manage snapshots of that dataset without problems from the physical h= ost. I have the following jail parameters: allow.mount=3D1 allow.mount.zfs=3D1 enforce_statfs=3D1 exec.poststart =3D 'zfs jail PostgreSQL00 zroot/data_PostgreSQL00'; The dataset was created with the following commands: zfs create -o mountpoint=3D/var/db/postgres/data15 -o canmount=3Dnoauto zroot/data_PostgreSQL00 And applied jail-friendly parameter: zfs set jailed=3Don zroot/data_PostgreSQL00 If I try to umount it I get: umount /var/db/postgres/data15/.zfs/snapshot/backup=20 umount: unmount of /var/db/postgres/data15/.zfs/snapshot/backup failed: Operation not permitted If I try to destroy it I get: zfs destroy zroot/data_PostgreSQL00@backup cannot destroy snapshot zroot/data_PostgreSQL00@backup: dataset is busy Am I doing anything wrong? Maybe its a bug? --=20 You are receiving this mail because: You are the assignee for the bug.=