Skip to content

Commit

Permalink
update defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Murray <plugins@omv-extras.org>
  • Loading branch information
ryecoaaron committed Feb 17, 2024
1 parent 4d01912 commit 46198b1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion usr/share/openmediavault/engined/rpc/zfs.inc
Expand Up @@ -152,6 +152,8 @@ print_r($stats);
if ($params['ashift']) {
$opts .= sprintf("-o ashift=%s ", $params['ashiftval']);
}
$opts .= "-o failmode=continue ";
$opts .= "-o autoexpand=on ";
if (strlen($params['mountpoint']) > 0) {
$opts .= sprintf('-m "%s" ', $params['mountpoint']);
}
Expand Down Expand Up @@ -303,7 +305,12 @@ print_r($stats);
$name = $params['path'] . "/" . $params['name'];
$tmp = OMVModuleZFSFilesystem::create($name);
if (strlen($params['mountpoint']) > 0) {
$properties = array("mountpoint"=>$params['mountpoint']);
$properties = [
'mountpoint' => $params['mountpoint'],
'atime' => 'off',
'acltype' => 'posix',
'xattr' => 'sa'
];
$tmp->setProperties($properties);
}
// $mntent_uuid = \OMV\Uuid::uuid4();
Expand Down

0 comments on commit 46198b1

Please sign in to comment.