Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions manila/share/drivers/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,9 @@ def _mount_device_with_lock():
# effect only after it was mounted. Closes #1645751
# NOTE(gouthamr): Executing tune2fs -U only works on
# a recently checked filesystem. See debian bug 857336
'&&', 'sudo', 'e2fsck', '-y', '-f', device_path,
'&&', 'sudo', 'tune2fs', '-U', 'random', device_path,
'&&', '(', 'sudo', 'e2fsck', '-y', '-f', device_path,
'||', '[', '$?', '-le', '2', ']', ')',
'&&', 'sudo', 'tune2fs', '-U', 'random', device_path,
'&&', 'sudo', 'mount', device_path, mount_path,
)
self._ssh_exec(server_details, mount_cmd)
Expand Down