Skip to content

Commit aa16dff

Browse files
authored
Only chown when mounted (#9436)
Only run `chown` during dataset ensure if that dataset is mounted, otherwise the path may not exist.
1 parent f8410bf commit aa16dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

illumos-utils/src/zfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ impl Zfs {
11571157

11581158
// We ensure that the currently running process has the ability to
11591159
// act on the underlying mountpoint.
1160-
if !zoned {
1160+
if wants_mounting {
11611161
let mut command = Command::new(PFEXEC);
11621162
let user = whoami::username();
11631163
let mount = format!("{mountpoint}");

0 commit comments

Comments
 (0)