Skip to content

Conversation

@concussious
Copy link
Contributor

@concussious concussious commented Oct 30, 2025

Motivation and Context

This documentation change is intended to make the zfs jail manual more useful by implying why the reader would want to use the utility, exposing additional limitations, and correcting the structure of the document to accommodate this change with (hopefully) a good quality flow.

Description

Add an introductory sentance explaining why the reader may want to use this command, and establishing the requirement that the jail must be running. Move other requirements from the description of the subcommands to follow this for flow and structure. Move the caveat that this is for FreeBSD down to a cannonical CAVEATS section, and mention that this utility can not be used to delegate the root directory of the jail to that section also.

Checklist:

  • My code follows the OpenZFS code style requirements.
  • [😉] I have updated the documentation accordingly.
  • I have read the contributing document.
  • I have added tests to cover my changes.
  • I have run the ZFS Test Suite with this change applied.
  • All commit messages are properly formatted and contain Signed-off-by.

@concussious concussious changed the title zfs-jail.8: Add introductory sentence, rafactor zfs-jail.8: Add introductory sentence, refactor Oct 30, 2025
@behlendorf behlendorf requested a review from allanjude November 4, 2025 01:26
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Nov 4, 2025
.Pp
To allow management of the dataset from within a jail, the
.Sy jailed
property has to be set and the jail needs access to the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
property has to be set and the jail needs access to the
property should be set and the required
.Xr devfs.conf 5
entries to expose the

.Sy jailed
property has to be set and the jail needs access to the
.Pa /dev/zfs
device.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
device.
device within the jail must be present.

.Bl -tag -width ""
The
.Nm
utility can be used to assign a dataset onto a running
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
utility can be used to assign a dataset onto a running
functionality can be used to assign a dataset onto a running

zfs-jail isn't the utility itself. I originally suggested changing this to 'subcommand', but we detail both subcommands within this man page. So I think this is better wording.

feature and are not relevant on other platforms.
See
.Xr jail 8
for more information on managing jails.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add a .Xr here to zfs-zone.8 for the equivalent functionality on Linux

Add an introductory sentance explaining why the reader may want to use
this command, and establishing the requirement that the jail must be
running. Move other requirements from the description of the subcommands
to follow this for flow and structure. Move the caveat that this is for
FreeBSD down to a cannonical CAVEATS section, and crossreference Linux's
equivelant functionality. Mention that this utility can not be used to
delegate the root directory of the jail to that section also.

Event:		OpenZFS Production User Call
Reported by:	Jan Brankamp <crest@rlwinm.de>
Co-authored-by:	Allan Jude <allan@klarasystems.com>
Signed-off-by:	Alexander Ziaee <ziaee@FreeBSD.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Code Review Needed Ready for review and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants