mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			600 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			600 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/snapper/FileUtils.cc
 | |
| +++ b/snapper/FileUtils.cc
 | |
| @@ -387,9 +387,9 @@
 | |
|      std::pair<unsigned long long, unsigned long long>
 | |
|      SDir::statvfs() const
 | |
|      {
 | |
| -	struct statvfs64 fsbuf;
 | |
| -	if (fstatvfs64(dirfd, &fsbuf) != 0)
 | |
| -	    SN_THROW(IOErrorException(sformat("statvfs64 failed path:%s errno:%d (%s)", base_path.c_str(),
 | |
| +	struct statvfs fsbuf;
 | |
| +	if (fstatvfs(dirfd, &fsbuf) != 0)
 | |
| +	    SN_THROW(IOErrorException(sformat("statvfs failed path:%s errno:%d (%s)", base_path.c_str(),
 | |
|  					      errno, stringerror(errno).c_str())));
 | |
|  
 | |
|  	// f_bavail is used (not f_bfree) since df seems to do the
 |