View | Details | Raw Unified
Collapse All | Expand All

(-) src/ByteBuffer/SaveOperation.cs.orig (-4 / +4 lines)
 Lines 63-70    Link Here 
	{
	{
#if ENABLE_UNIX_SPECIFIC
#if ENABLE_UNIX_SPECIFIC
		// get info about the device the file will be saved on
		// get info about the device the file will be saved on
		Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
		Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
		Mono.Unix.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
		Mono.Unix.Native.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
			
			
		long freeSpace=(long)(stat.f_bavail*stat.f_bsize);
		long freeSpace=(long)(stat.f_bavail*stat.f_bsize);
			
			
 Lines 53-60    Link Here 
		// get info about the device the file will be saved on
		// get info about the device the file will be saved on
		FileInfo fi=new FileInfo(bb.Filename);
		FileInfo fi=new FileInfo(bb.Filename);
			
			
		Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
		Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
		Mono.Unix.Syscall.statvfs(bb.Filename, out stat);
		Mono.Unix.Native.Syscall.statvfs(bb.Filename, out stat);
			
			
		long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length;
		long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length;