Displaying 2 results from an estimated 2 matches for "writetarhead".
Did you mean:
writetarheader
2002 Dec 20
1
smbclient and large file support
...0 +45,10 @@
struct file_info_struct
{
- size_t size;
+ SMB_BIG_UINT size;
uint16 mode;
- int uid;
- int gid;
+ uid_t uid;
+ gid_t gid;
/* These times are normally kept in GMT */
time_t mtime;
time_t atime;
@@ -125,11 +125,11 @@
int blocksize=20;
int tarhandle;
-static void writetarheader(int f, char *aname, int size, time_t mtime,
+static void writetarheader(int f, char *aname, SMB_BIG_UINT size, time_t mtime,
char *amode, unsigned char ftype);
static void do_atar(char *rname,char *lname,file_info *finfo1);
static void do_tar(file_info *finfo);
-static void oct_it(long...
1999 Jun 15
0
FIX for smbtar zero length files... (Cont :)
...0];
int read_size = 65520;
int datalen=0;
+ /* Zero Byte Error retry setup */
+ int zero_retry=0;
+ int max_zero_retry=5;
struct timeval tp_start;
GetTimeOfDay(&tp_start);
@@ -717,6 +720,8 @@
/* write a tar header, don't bother with mode - just set to
100644 */
writetarheader(tarhandle, rname, finfo.size, finfo.mtime, "100644
\0", ftype);
+ zero_retry=0;
+
while (nread < finfo.size && !close_done) {
DEBUG(3,("nread=%d\n",nread));
@@ -737,8 +742,15 @@
nread += datalen;
if (da...