Skip to content

Commit

Permalink
add mntinfo check
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Dec 26, 2024
1 parent 01f90da commit 552f9fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/middlewared/middlewared/plugins/zfs_/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ def paths_to_datasets_impl(
possible.
"""
rv = dict()
if mntinfo is None:
mntinfo = getmntinfo()

for path in paths:
rv[path] = path_to_dataset_impl(path, mntinfo)
return rv
Expand Down

0 comments on commit 552f9fa

Please sign in to comment.