nix-store --gc: Make ‘--max-freed 0’ do the right thing
That is, delete almost nothing (it will still remove unused links from /nix/store/.links).
This commit is contained in:
		
							parent
							
								
									1df702d347
								
							
						
					
					
						commit
						967d066d8e
					
				
					 4 changed files with 6 additions and 7 deletions
				
			
		|  | @ -2,7 +2,7 @@ | |||
| #include "globals.hh" | ||||
| #include "util.hh" | ||||
| 
 | ||||
| #include <limits.h> | ||||
| #include <climits> | ||||
| 
 | ||||
| 
 | ||||
| namespace nix { | ||||
|  | @ -12,7 +12,7 @@ GCOptions::GCOptions() | |||
| { | ||||
|     action = gcDeleteDead; | ||||
|     ignoreLiveness = false; | ||||
|     maxFreed = 0; | ||||
|     maxFreed = ULLONG_MAX; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue