FreeNAS/freenas f468508src/middlewared/middlewared/plugins/filesystem_ perm_check.py

Fix typo in filesystem perm check (#13563)

(cherry picked from commit 7d6bc4bd966241de9b19f668c9e0c7e68cbbd92b)

Co-authored-by: Andrew Walker <awalker at ixsystems.com>
DeltaFile
+1-1src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+1-11 files

FreeNAS/freenas 34aff2fsrc/middlewared/middlewared/plugins/filesystem_ perm_check.py

Fix typo in filesystem perm check

(cherry picked from commit 7d6bc4bd966241de9b19f668c9e0c7e68cbbd92b)
DeltaFile
+1-1src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+1-11 files

FreeNAS/freenas 3cfcfb5src/middlewared/middlewared/plugins/filesystem_ perm_check.py

Fix typo in filesystem perm check (#13562)

DeltaFile
+1-1src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+1-11 files

FreeNAS/freenas 7d6bc4bsrc/middlewared/middlewared/plugins/filesystem_ perm_check.py

Fix typo in filesystem perm check
DeltaFile
+1-1src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+1-11 files

FreeNAS/freenas 740c06esrc/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

fix typo in jbof_enclosures.py (#13561)

(cherry picked from commit 6a61d4eedcfc53d30e2279f52aa728a4720e6fd7)

Co-authored-by: Caleb <yocalebo at gmail.com>
DeltaFile
+3-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+3-21 files

FreeNAS/freenas dc90ebasrc/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

fix typo in jbof_enclosures.py (#13560)

(cherry picked from commit 6a61d4eedcfc53d30e2279f52aa728a4720e6fd7)

Co-authored-by: Caleb <yocalebo at gmail.com>
DeltaFile
+3-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+3-21 files

FreeNAS/freenas 91871cbsrc/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

fix typo in jbof_enclosures.py (#13559)

DeltaFile
+3-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+3-21 files

FreeNAS/freenas 65d8afcsrc/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

fix typo in jbof_enclosures.py
DeltaFile
+1-1src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+1-11 files

FreeNAS/freenas 4af87d5src/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

NAS-128339 / 24.04.1 / account for disk['State'] == 'Absent' on ES24N (by yocalebo) (#13558)

* account for disk['State'] == 'Absent' on ES24N

(cherry picked from commit 2327541070077c09c8e4fddea3d537c111eb0c20)

* add missing continue

(cherry picked from commit d5ce3276adaf47d2532519a757b4ff8861b93214)

* address review

(cherry picked from commit 9dc7f2c8938562ad44509be8df4085aa4b6fccfc)

* enough computers for me today

(cherry picked from commit 115421b5b960cf7815a0ad42c6cf0f9ff221f252)

---------

Co-authored-by: Caleb <yocalebo at gmail.com>
DeltaFile
+17-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+17-21 files

FreeNAS/freenas 1976caasrc/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

NAS-128339 / 24.04.0 / account for disk['State'] == 'Absent' on ES24N (by yocalebo) (#13557)

* account for disk['State'] == 'Absent' on ES24N

(cherry picked from commit 2327541070077c09c8e4fddea3d537c111eb0c20)

* add missing continue

(cherry picked from commit d5ce3276adaf47d2532519a757b4ff8861b93214)

* address review

(cherry picked from commit 9dc7f2c8938562ad44509be8df4085aa4b6fccfc)

* enough computers for me today

(cherry picked from commit 115421b5b960cf7815a0ad42c6cf0f9ff221f252)

---------

Co-authored-by: Caleb <yocalebo at gmail.com>
DeltaFile
+17-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+17-21 files

FreeNAS/freenas 3ec3f4csrc/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

NAS-128339 / 24.10 / account for disk['State'] == 'Absent' on ES24N (#13556)

* account for disk['State'] == 'Absent' on ES24N

* add missing continue

* address review

* enough computers for me today
DeltaFile
+17-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+17-21 files

FreeNAS/freenas d5ce327src/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

add missing continue
DeltaFile
+1-0src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+1-01 files

FreeNAS/freenas 2327541src/middlewared/middlewared/plugins/enclosure_ jbof_enclosures.py

account for disk['State'] == 'Absent' on ES24N
DeltaFile
+16-2src/middlewared/middlewared/plugins/enclosure_/jbof_enclosures.py
+16-21 files

FreeNAS/freenas 55e5f63src/middlewared/middlewared/plugins/filesystem_ perm_check.py, src/middlewared/middlewared/utils/osc/linux user_context.py

Speed up ACL execute permissions check (#13554) (#13555)

The validation that ACL entries have ability to chdir to specified
path had relatively terrible performance because it was forking
a worker process for each change_to_user operation. This commit
refactors so that we only fork once for validating the entire ACL.

This required refactoring our user context code to leave the
saved UID and saved GID in-tact so that we can repeatedly
setresuid and setresgid from same child process.

(cherry picked from commit d0c29fc474dc41a681fe089cd8c1c103856a3406)

Co-authored-by: Andrew Walker <awalker at ixsystems.com>
DeltaFile
+110-26src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+21-12src/middlewared/middlewared/utils/osc/linux/user_context.py
+131-382 files

FreeNAS/freenas 30c6717src/middlewared/middlewared/plugins/filesystem_ perm_check.py, src/middlewared/middlewared/utils/osc/linux user_context.py

Speed up ACL execute permissions check (#13554)

The validation that ACL entries have ability to chdir to specified
path had relatively terrible performance because it was forking
a worker process for each change_to_user operation. This commit
refactors so that we only fork once for validating the entire ACL.

This required refactoring our user context code to leave the
saved UID and saved GID in-tact so that we can repeatedly
setresuid and setresgid from same child process.

(cherry picked from commit d0c29fc474dc41a681fe089cd8c1c103856a3406)
DeltaFile
+110-26src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+21-12src/middlewared/middlewared/utils/osc/linux/user_context.py
+131-382 files

FreeNAS/freenas d0c29fcsrc/middlewared/middlewared/plugins/filesystem_ perm_check.py, src/middlewared/middlewared/utils user_context.py

Speed up ACL execute permissions check (#13554)

The validation that ACL entries have ability to chdir to specified
path had relatively terrible performance because it was forking
a worker process for each change_to_user operation. This commit
refactors so that we only fork once for validating the entire ACL.

This required refactoring our user context code to leave the
saved UID and saved GID in-tact so that we can repeatedly
setresuid and setresgid from same child process.
DeltaFile
+110-26src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+21-12src/middlewared/middlewared/utils/user_context.py
+131-382 files

FreeNAS/freenas 853870ftests/api2 test_261_iscsi_cmd.py test_300_nfs.py

Remove tests
DeltaFile
+0-2,741tests/api2/test_261_iscsi_cmd.py
+0-1,764tests/api2/test_300_nfs.py
+0-1,492tests/api2/test_200_ftp.py
+0-1,131tests/api2/test_341_pool_dataset_encryption.py
+0-818tests/api2/test_425_smb_protocol.py
+0-718tests/api2/test_011_user.py
+0-8,664214 files not shown
+0-34,653220 files

FreeNAS/freenas 6c14db7src/middlewared/middlewared/plugins/filesystem_ perm_check.py, src/middlewared/middlewared/utils user_context.py

Speed up ACL execute permissions check

The validation that ACL entries have ability to chdir to specified
path had relatively terrible performance because it was forking
a worker process for each change_to_user operation. This commit
refactors so that we only fork once for validating the entire ACL.

This required refactoring our user context code to leave the
saved UID and saved GID in-tact so that we can repeatedly
setresuid and setresgid from same child process.
DeltaFile
+110-26src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+21-12src/middlewared/middlewared/utils/user_context.py
+131-382 files

FreeNAS/freenas f1519fesrc/middlewared/middlewared/plugins/filesystem_ perm_check.py, src/middlewared/middlewared/utils user_context.py

Fix
DeltaFile
+41-10src/middlewared/middlewared/utils/user_context.py
+31-7src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+72-172 files

FreeNAS/freenas 07ef296src/middlewared/middlewared/test/integration/utils mock_binary.py

Fix `test_zfs_lifecycle` (#13552)

(cherry picked from commit ec5d75e94248cdfd4b713475b20fd253c156d94e)

Co-authored-by: themylogin <themylogin at gmail.com>
DeltaFile
+2-0src/middlewared/middlewared/test/integration/utils/mock_binary.py
+2-01 files

FreeNAS/freenas 1c519d8src/middlewared/middlewared/test/integration/utils mock_binary.py

Fix `test_zfs_lifecycle`

(cherry picked from commit ec5d75e94248cdfd4b713475b20fd253c156d94e)
DeltaFile
+2-0src/middlewared/middlewared/test/integration/utils/mock_binary.py
+2-01 files

FreeNAS/freenas f5174f2src/middlewared/middlewared/test/integration/utils mock_binary.py

Fix `test_zfs_lifecycle` (#13551)

DeltaFile
+2-0src/middlewared/middlewared/test/integration/utils/mock_binary.py
+2-01 files

FreeNAS/freenas a044209tests/api2 test_vm_roles.py

fix vm role tests (#13550)

(cherry picked from commit d5a322d0a02706d5f582aacfbed88a3b95464cb7)

Co-authored-by: Caleb <yocalebo at gmail.com>
DeltaFile
+2-2tests/api2/test_vm_roles.py
+2-21 files

FreeNAS/freenas 8414804tests/api2 test_vm_roles.py

fix vm role tests (#13549)

DeltaFile
+2-2tests/api2/test_vm_roles.py
+2-21 files

FreeNAS/freenas d5a322dtests/api2 test_vm_roles.py

fix vm role tests
DeltaFile
+2-2tests/api2/test_vm_roles.py
+2-21 files

FreeNAS/freenas f294457src/middlewared/middlewared/plugins/pool_ import_pool.py

Recursively mount root dataset during boot if it is not encrypted

Import the pools during boot without mounting any of the datasets.
Check on 'feature at encryption' for imported pool. If feature is not
active, recursively mount the root datasets, which effectively
mounts all datasets present on the pool.

If the encryption feature is active, continue and unlock the
datasets.

Signed-off-by: Umer Saleem <usaleem at ixsystems.com>
DeltaFile
+58-0src/middlewared/middlewared/plugins/pool_/import_pool.py
+58-01 files

FreeNAS/freenas dbd7d18src/middlewared/middlewared/plugins/pool_ import_pool.py

Recursively mount root dataset during boot if it is not encrypted

Import the pools during boot without mounting any of the datasets.
Check on 'feature at encryption' for imported pool. If feature is not
active, recursively mount the root datasets, which effectively
mounts all datasets present on the pool.

If the encryption feature is active, continue and unlock the
datasets.

Signed-off-by: Umer Saleem <usaleem at ixsystems.com>
DeltaFile
+58-0src/middlewared/middlewared/plugins/pool_/import_pool.py
+58-01 files

FreeNAS/freenas 26212e8tests/api2 test_261_iscsi_cmd.py test_300_nfs.py

Remove TEST
DeltaFile
+0-2,741tests/api2/test_261_iscsi_cmd.py
+0-1,764tests/api2/test_300_nfs.py
+0-1,492tests/api2/test_200_ftp.py
+0-1,131tests/api2/test_341_pool_dataset_encryption.py
+0-946tests/api2/test_345_acl_nfs4.py
+0-818tests/api2/test_425_smb_protocol.py
+0-8,892213 files not shown
+0-35,097219 files

FreeNAS/freenas 003d204tests/api2 test_011_user.py test_simple_share.py

fix smb simple share test
DeltaFile
+19-13tests/api2/test_011_user.py
+2-8tests/api2/test_simple_share.py
+21-212 files

FreeNAS/freenas 64a0c62tests/api2 test_011_user.py test_simple_share.py

fix test_simple_share
DeltaFile
+13-13tests/api2/test_011_user.py
+3-8tests/api2/test_simple_share.py
+16-212 files