* Remove the --use-atime / --max-atime garbage collector flags. Many
(Linux) machines no longer maintain the atime because it's too expensive, and on the machines where --use-atime is useful (like the buildfarm), reading the atimes on the entire Nix store takes way too much time to make it practical.
This commit is contained in:
		
							parent
							
								
									997db91e07
								
							
						
					
					
						commit
						8824d60fe5
					
				
					 7 changed files with 11 additions and 203 deletions
				
			
		| 
						 | 
				
			
			@ -536,11 +536,6 @@ static void opGC(Strings opFlags, Strings opArgs)
 | 
			
		|||
            if (options.maxFreed == 0) options.maxFreed = 1;
 | 
			
		||||
        }
 | 
			
		||||
        else if (*i == "--max-links") options.maxLinks = getIntArg(*i, i, opFlags.end());
 | 
			
		||||
        else if (*i == "--use-atime") options.useAtime = true;
 | 
			
		||||
        else if (*i == "--max-atime") {
 | 
			
		||||
            options.useAtime = true;
 | 
			
		||||
            options.maxAtime = getIntArg(*i, i, opFlags.end());
 | 
			
		||||
        }
 | 
			
		||||
        else throw UsageError(format("bad sub-operation `%1%' in GC") % *i);
 | 
			
		||||
 | 
			
		||||
    if (!opArgs.empty()) throw UsageError("no arguments expected");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue