wip
This commit is contained in:
		
							parent
							
								
									e3f3fd1a81
								
							
						
					
					
						commit
						5e73a7634f
					
				
					 3 changed files with 10 additions and 9 deletions
				
			
		|  | @ -34,11 +34,11 @@ fi | |||
| 
 | ||||
| if [[ "$?" == "0" ]] | ||||
| then | ||||
|   echo "SUCCESS" | ||||
|   zfs bookmark "$source_dataset@$new_bookmark" "$source_dataset#$new_bookmark" | ||||
|   zfs destroy "$source_dataset@$new_bookmark" | ||||
|   echo "SUCCESS" | ||||
| else | ||||
|   echo "ERROR" | ||||
|   zfs destroy "$source_dataset@$new_bookmark" | ||||
|   echo "ERROR" | ||||
|   exit 99 | ||||
| fi | ||||
|  |  | |||
|  | @ -33,10 +33,10 @@ for name, config in node.metadata.get('zfs/datasets', {}).items(): | |||
| for name, config in node.metadata.get('zfs/pools', {}).items(): | ||||
|     zfs_pools[name] = config | ||||
| 
 | ||||
|     # actions[f'pool_{name}_enable_trim'] = { | ||||
|     #    'command': f'zpool set autotrim=on {name}', | ||||
|     #    'unless':  f'zpool get autotrim -H -o value {name} | grep -q on', | ||||
|     #    'needs':   [ | ||||
|     #        f'zfs_pool:{name}' | ||||
|     #    ] | ||||
|     # } | ||||
|     actions[f'pool_{name}_enable_trim'] = { | ||||
|        'command': f'zpool set autotrim=on {name}', | ||||
|        'unless':  f'zpool get autotrim -H -o value {name} | grep -q on', | ||||
|        'needs':   [ | ||||
|            f'zfs_pool:{name}' | ||||
|        ] | ||||
|     } | ||||
|  |  | |||
|  | @ -29,6 +29,7 @@ defaults = { | |||
|                 }, | ||||
|             }, | ||||
|             'zfsutils-linux': { | ||||
|                 'backports': True, | ||||
|                 'needed_by': { | ||||
|                     'pkg_apt:zfs-zed', | ||||
|                     'zfs_dataset:', | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 mwiegand
						mwiegand