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" ]] | if [[ "$?" == "0" ]] | ||||||
| then | then | ||||||
|   echo "SUCCESS" |  | ||||||
|   zfs bookmark "$source_dataset@$new_bookmark" "$source_dataset#$new_bookmark" |   zfs bookmark "$source_dataset@$new_bookmark" "$source_dataset#$new_bookmark" | ||||||
|   zfs destroy "$source_dataset@$new_bookmark" |   zfs destroy "$source_dataset@$new_bookmark" | ||||||
|  |   echo "SUCCESS" | ||||||
| else | else | ||||||
|   echo "ERROR" |  | ||||||
|   zfs destroy "$source_dataset@$new_bookmark" |   zfs destroy "$source_dataset@$new_bookmark" | ||||||
|  |   echo "ERROR" | ||||||
|   exit 99 |   exit 99 | ||||||
| fi | 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(): | for name, config in node.metadata.get('zfs/pools', {}).items(): | ||||||
|     zfs_pools[name] = config |     zfs_pools[name] = config | ||||||
| 
 | 
 | ||||||
|     # actions[f'pool_{name}_enable_trim'] = { |     actions[f'pool_{name}_enable_trim'] = { | ||||||
|     #    'command': f'zpool set autotrim=on {name}', |        'command': f'zpool set autotrim=on {name}', | ||||||
|     #    'unless':  f'zpool get autotrim -H -o value {name} | grep -q on', |        'unless':  f'zpool get autotrim -H -o value {name} | grep -q on', | ||||||
|     #    'needs':   [ |        'needs':   [ | ||||||
|     #        f'zfs_pool:{name}' |            f'zfs_pool:{name}' | ||||||
|     #    ] |        ] | ||||||
|     # } |     } | ||||||
|  |  | ||||||
|  | @ -29,6 +29,7 @@ defaults = { | ||||||
|                 }, |                 }, | ||||||
|             }, |             }, | ||||||
|             'zfsutils-linux': { |             'zfsutils-linux': { | ||||||
|  |                 'backports': True, | ||||||
|                 'needed_by': { |                 'needed_by': { | ||||||
|                     'pkg_apt:zfs-zed', |                     'pkg_apt:zfs-zed', | ||||||
|                     'zfs_dataset:', |                     'zfs_dataset:', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 mwiegand
						mwiegand