default ext volumes to use 0 reserved space
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
		
							parent
							
								
									10af6c639b
								
							
						
					
					
						commit
						9baea05ca2
					
				|  | @ -1309,6 +1309,16 @@ class CsiBaseDriver { | ||||||
|                   if (!Array.isArray(formatOptions)) { |                   if (!Array.isArray(formatOptions)) { | ||||||
|                     formatOptions = []; |                     formatOptions = []; | ||||||
|                   } |                   } | ||||||
|  | 
 | ||||||
|  |                   switch (fs_type) { | ||||||
|  |                     case "ext3": | ||||||
|  |                     case "ext4": | ||||||
|  |                     case "ext4dev": | ||||||
|  |                       // disable reserved blocks in this scenario
 | ||||||
|  |                       formatOptions.unshift("-m", "0"); | ||||||
|  |                       break; | ||||||
|  |                   } | ||||||
|  | 
 | ||||||
|                   await filesystem.formatDevice(device, fs_type, formatOptions); |                   await filesystem.formatDevice(device, fs_type, formatOptions); | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue