Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Mar 2023 12:23:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260160] zfs jailed: snapshots not accessible
Message-ID:  <bug-260160-227-Ch4cAQL0sg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260160-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260160-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260160

Juan Jos=C3=A9 Ivars Poquet <kr0m@alfaexploit.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kr0m@alfaexploit.com

--- Comment #31 from Juan Jos=C3=A9 Ivars Poquet <kr0m@alfaexploit.com> ---
(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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260160-227-Ch4cAQL0sg>