mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Fix for nice and ionice in FileManager
This commit is contained in:
parent
9689bc144d
commit
dbd028adc8
1 changed files with 5 additions and 5 deletions
|
@ -83,7 +83,7 @@ class FileManager {
|
||||||
$src = $this->formatFullPath($item);
|
$src = $this->formatFullPath($item);
|
||||||
$dst = $this->formatFullPath($target_dir);
|
$dst = $this->formatFullPath($target_dir);
|
||||||
|
|
||||||
exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-file {$this->user} {$src} {$dst}", $output, $return_var);
|
exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-copy-fs-file {$this->user} {$src} {$dst}", $output, $return_var);
|
||||||
|
|
||||||
$error = self::check_return_code($return_var, $output);
|
$error = self::check_return_code($return_var, $output);
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ class FileManager {
|
||||||
$src = $this->formatFullPath($item);
|
$src = $this->formatFullPath($item);
|
||||||
$dst = $this->formatFullPath($target_dir);
|
$dst = $this->formatFullPath($target_dir);
|
||||||
|
|
||||||
exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-directory {$this->user} {$src} {$dst}", $output, $return_var);
|
exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-copy-fs-directory {$this->user} {$src} {$dst}", $output, $return_var);
|
||||||
|
|
||||||
$error = self::check_return_code($return_var, $output);
|
$error = self::check_return_code($return_var, $output);
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class FileManager {
|
||||||
|
|
||||||
$dst_item = $this->formatFullPath($dst_item);
|
$dst_item = $this->formatFullPath($dst_item);
|
||||||
|
|
||||||
exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-add-fs-archive {$this->user} {$dst_item} {$items}", $output, $return_var);
|
exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-add-fs-archive {$this->user} {$dst_item} {$items}", $output, $return_var);
|
||||||
|
|
||||||
$error = self::check_return_code($return_var, $output);
|
$error = self::check_return_code($return_var, $output);
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ class FileManager {
|
||||||
|
|
||||||
$dst_item = $this->formatFullPath($dst_item_name);
|
$dst_item = $this->formatFullPath($dst_item_name);
|
||||||
|
|
||||||
exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-file {$this->user} {$src_item} {$dst_item}", $output, $return_var);
|
exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-copy-fs-file {$this->user} {$src_item} {$dst_item}", $output, $return_var);
|
||||||
|
|
||||||
$error = self::check_return_code($return_var, $output);
|
$error = self::check_return_code($return_var, $output);
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ class FileManager {
|
||||||
$item = $this->formatFullPath($item);
|
$item = $this->formatFullPath($item);
|
||||||
$dst_item = $this->formatFullPath($target_dir);
|
$dst_item = $this->formatFullPath($target_dir);
|
||||||
|
|
||||||
exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-extract-fs-archive {$this->user} {$item} {$dst_item}", $output, $return_var);
|
exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-extract-fs-archive {$this->user} {$item} {$dst_item}", $output, $return_var);
|
||||||
|
|
||||||
$error = self::check_return_code($return_var, $output);
|
$error = self::check_return_code($return_var, $output);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue