Displaying 5 results from an estimated 5 matches for "get_total_size".
Did you mean:
get_local_size
2001 Nov 05
4
smdb warp-around after 4 GB
...Is smbd supposed to be large-file-proof, e.g. capable of handling files
larger than 4 GB?
* On Solaris 8?
* On Tru64 Unix?
* On RedHat 7.1 / Kernel 2.4.2 / ext2?
o Is smbclient supposed to be large-file-proof? (I see a few minor
problems in the source; the variables get_total_size,
put_total_size, nread in client/client.c should be declared
as off_t.
o Am I missing something really obvious, such as a smb.conf file option?
Regards,
- Andi Karrer
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
...(time_t)-1)
+ ;
+ else {
+ if (utb.actime == (time_t)0 || utb.actime == (time_t)-1)
+ utb.actime = utb.modtime;
+ utime(lname, &utb);
+ }
+ }
}
if (archive_level >= 2 && (attr & aARCH)) {
@@ -555,7 +623,7 @@
get_total_time_ms += this_time;
get_total_size += nread;
- DEBUG(2,("(%g kb/s) (average %g kb/s)\n",
+ DEBUG(0,("(%g kb/s) (average %g kb/s)\n",
nread / (1.024*this_time + 1.0e-4),
get_total_size / (1.024*get_total_time_ms)));
}
@@ -1230,6 +1298,16 @@
/**************************************************...
2002 Dec 20
1
smbclient and large file support
...65D
======================================================================
-------------- next part --------------
--- samba-2.2.7a/source/client/client.c Wed Dec 4 09:16:34 2002
+++ samba-2.2.7a-fixed/source/client/client.c Thu Dec 19 15:41:51 2002
@@ -92,9 +92,9 @@
/* timing globals */
off_t get_total_size = 0;
-int get_total_time_ms = 0;
+unsigned int get_total_time_ms = 0;
off_t put_total_size = 0;
-int put_total_time_ms = 0;
+unsigned int put_total_time_ms = 0;
/* totals globals */
static double dir_total;
--- samba-2.2.7a/source/client/clitar.c Tue Apr 30 06:26:18 2002
+++ samba-2.2.7a-fixed...
2003 Dec 01
0
No subject
...int this_time;
+
+ GetTimeOfDay(&tp_end);
+ this_time =
+ (tp_end.tv_sec - tp_start.tv_sec)*1000 +
+ (tp_end.tv_usec - tp_start.tv_usec)/1000;
+ get_total_time_ms += this_time;
+ get_total_size += nread;
+
+ DEBUG(2,("(%g kb/s) (average %g kb/s)\n",
+ nread / (1.024*this_time + 1.0e-4),
+ get_total_size / (1.024*get_total_time_ms)));
+ }
+}
+
+
+/*****************************************************...
2003 Dec 01
0
No subject
...aARCH)) {
+ cli_setatr(cli, rname, attr & ~(uint16)aARCH, 0);
+ }
+
+ {
+ struct timeval tp_end;
+ int this_time;
+
+ GetTimeOfDay(&tp_end);
+ this_time =
+ (tp_end.tv_sec - tp_start.tv_sec)*1000 +
+ (tp_end.tv_usec - tp_start.tv_usec)/1000;
+ get_total_time_ms += this_time;
+ get_total_size += nread;
+
+ DEBUG(2,("(%g kb/s) (average %g kb/s)\n",
+ nread / (1.024*this_time + 1.0e-4),
+ get_total_size / (1.024*get_total_time_ms)));
+ }
+}
+
+
+/****************************************************************************
+ get file restarting at end of local file
+ *...