pyzkiln_core/zutils/fsutils.py
def mount_fs(fs_name: str, mountpath: str):
    """
    Pass zFS argregate name and mountpoint to mount the file system.

        Parameters:
              fs_name (str): zFS aggregate name
            mountpath (str): path to mount zFS
        Returns:
            Resulting return code of mount command
    """
    mount_cmd_location = config.get('FsutilsSection', 'fsutils.mount')

    if dry_run_flag:
        logging.info(f"DRY RUN COMMAND: {mount_cmd_location} -f {fs_name} -t zfs {mountpath}")
        return 0
    else:
        mount_cmd = subprocess.run(
            [mount_cmd_location, "-f", fs_name, "-t", "zfs", mountpath]
        )
        return mount_cmd.returncode

    Pass zFS argregate name and mountpoint to mount the file system.

        Parameters:
              fs_name (str): zFS aggregate name
            mountpath (str): path to mount zFS
        Returns:
            Resulting return code of mount command
    
Pass zFS argregate name and mountpoint to mount the file system.
Parameters:
fs_name (str): zFS aggregate name
mountpath (str): path to mount zFS
Returns:
Resulting return code of mount command
Pass zFS argregate name and mountpoint to mount the file system . Parameters : fs_name ( str ) : zFS aggregate name mountpath ( str ) : path to mount zFS Returns : Resulting return code of mount command
def mount_fs(fs_name: str, mountpath: str):
    mount_cmd_location = config.get('FsutilsSection', 'fsutils.mount')
    if dry_run_flag:
        logging.info(f"DRY RUN COMMAND: {mount_cmd_location} -f {fs_name} -t zfs {mountpath}")
        return 0
    else:
        mount_cmd = subprocess.run(
            [mount_cmd_location, "-f", fs_name, "-t", "zfs", mountpath]
        )
        return mount_cmd.returncode
def mount_fs ( fs_name : str , mountpath : str ) : mount_cmd_location = config . get ( 'FsutilsSection' , 'fsutils.mount' ) if dry_run_flag : logging . info ( f"DRY RUN COMMAND: {mount_cmd_location} -f {fs_name} -t zfs {mountpath}" ) return 0 else : mount_cmd = subprocess . run ( [ mount_cmd_location , "-f" , fs_name , "-t" , "zfs" , mountpath ] ) return mount_cmd . returncode
Pass zFS argregate name and mountpoint to mount the file system.
Pass zFS argregate name and mountpoint to mount the file system .
"""
    Pass zFS argregate name and mountpoint to mount the file system.

        Parameters:
              fs_name (str): zFS aggregate name
            mountpath (str): path to mount zFS
        Returns:
            Resulting return code of mount command
    """
fs_name
str
mountpath
str