⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 samba-largefs.patch

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 PATCH
字号:
This patch fixes Samba 2.0.0 up to 2.0.3, so that it does not overflowon filesystems larger than 2GB.  The problem is fixed in newerreleases of Samba.Index: client/client.c--- client/client.c	1999/01/27 19:37:27	1.125+++ client/client.c	1999/03/30 10:25:18	1.128@@ -101,7 +101,7 @@ int put_total_time_ms = 0;  /* totals globals */-int dir_total = 0;+static double dir_total;  #define USENMB @@ -430,7 +430,7 @@  	do_dskattr(); -	DEBUG(3, ("Total bytes listed: %d\n", dir_total));+	DEBUG(3, ("Total bytes listed: %.0f\n", dir_total)); }  @@ -463,7 +463,7 @@  	do_dskattr(); -	DEBUG(0, ("Total number of bytes: %d\n", dir_total));+	DEBUG(0, ("Total number of bytes: %.0f\n", dir_total)); }  Index: client/clitar.c--- client/clitar.c	1999/02/03 16:30:54	1.67+++ client/clitar.c	1999/03/30 10:41:07	1.70@@ -85,7 +85,8 @@ #endif  static char *tarbuf, *buffer_p;-static int tp, ntarf, tbufsiz, ttarf;+static int tp, ntarf, tbufsiz;+static double ttarf; /* Incremental mode */ BOOL tar_inc=False; /* Reset archive bit */@@ -1486,7 +1487,7 @@     free(tarbuf);          DEBUG(0, ("tar: dumped %d tar files\n", ntarf));-    DEBUG(0, ("Total bytes written: %d\n", ttarf));+    DEBUG(0, ("Total bytes written: %.0f\n", (double)ttarf));     break;   } 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -