Update fallocate
This commit is contained in:
		
							parent
							
								
									dee6427296
								
							
						
					
					
						commit
						3ef170ff4f
					
				|  | @ -28,7 +28,8 @@ | ||||||
| # Description | # Description | ||||||
| # ----------- | # ----------- | ||||||
| # | # | ||||||
| # Completion for fallocate (preallocate space to a file) from util-linux | # Completion for fallocate, util-linux 2.40.2 (https://github.com/util-linux/util-linux/) | ||||||
|  | # - preallocate or deallocate space to a file | ||||||
| # https://man7.org/linux/man-pages/man1/fallocate.1.html | # https://man7.org/linux/man-pages/man1/fallocate.1.html | ||||||
| # ------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------ | ||||||
| # Authors | # Authors | ||||||
|  | @ -37,16 +38,18 @@ | ||||||
| # ------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------ | ||||||
| 
 | 
 | ||||||
| _arguments \ | _arguments \ | ||||||
|   '(-h --help)'{-h,--help}'[display help message and exit]' \ |   '(-c --collapse-range)'{-c,--collapse-range}'[Removes a byte range from a file without leaving a hole]' \ | ||||||
|   '(-V --version)'{-V,--version}'[display version information and exit]' \ |   '(-d --dig-holes)'{-d,--dig-holes}'[Detect and dig holes]' \ | ||||||
|   '(-l --length)'{-l+,--length=}'[specify length of the allocation]:length (e.g. 1G, 512M)' \ |   '(-i --insert-range)'{-i,--insert-range}'[Insert a hole of length bytes from offset]' \ | ||||||
|   '(-o --offset)'{-o+,--offset=}'[start offset for allocation]:offset (e.g. 0, 1K)' \ |   '(-l --length)'{-l+,--length}'[Specifies the length of the range, in bytes]:bytes' \ | ||||||
|   '--dig-holes[detect and punch holes in the range]' \ |   '(-n --keep-size)'{-n,--keep-size}'[Do not modify the apparent length of the file]' \ | ||||||
|   '--punch-hole[punch holes (deallocate space)]' \ |   '(-o --offset)'{-o+,--offset}'[Specifies the beginning offset of the range, in bytes]:offset' \ | ||||||
|   '--collapse-range[remove a range of bytes and move later bytes forward]' \ |   '(-p --punch-hole)'{-p,--punch-hole}'[Deallocates space in the byte range starting at offset and continuing for length bytes]' \ | ||||||
|   '--zero-range[zero and optionally deallocate space]' \ |   '(-v --verbose)'{-v,--verbose}'[Enable verbose mode]' \ | ||||||
|   '--keep-size[do not extend file size beyond current size]' \ |   '(-x --posix)'{-p,--posix}'[Enable POSIX operation mode]' \ | ||||||
|   '--insert-range[insert space into file shifting existing data]' \ |   '(-z --zero-range)'{-z,--zero-range}'[Zeroes space in the byte range starting at offset and continuing for length bytes]' \ | ||||||
|  |   '(- *)'{-h,--help}'[Display help text and exit]' \ | ||||||
|  |   '(- *)'{-V,--version}'[Print version and exit ]' \ | ||||||
|   '*:filename:_files' |   '*:filename:_files' | ||||||
| 
 | 
 | ||||||
| # Local Variables: | # Local Variables: | ||||||
|  |  | ||||||
|  | @ -41,7 +41,7 @@ _arguments -s \ | ||||||
|   '(-S --semaphore)'{-S,--semaphore}'[Create a semaphore array with number of elements]:number' \ |   '(-S --semaphore)'{-S,--semaphore}'[Create a semaphore array with number of elements]:number' \ | ||||||
|   '(-p --mode)'{-p,--mode}'[Access permissions for the resource]:mode' \ |   '(-p --mode)'{-p,--mode}'[Access permissions for the resource]:mode' \ | ||||||
|   '(- *)'{-h,--help}'[Display help text and exit]' \ |   '(- *)'{-h,--help}'[Display help text and exit]' \ | ||||||
|   '(- *)'{-V,--version}'[Print version and exit ]' \ |   '(- *)'{-V,--version}'[Print version and exit ]' | ||||||
| 
 | 
 | ||||||
| # Local Variables: | # Local Variables: | ||||||
| # mode: Shell-Script | # mode: Shell-Script | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue