search for: have_off64_t

Displaying 9 results from an estimated 9 matches for "have_off64_t".

2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...y_run) return 0; CHECK_RO return rename(fname1, fname2); } -int do_mkdir(char *fname, mode_t mode) +int do_mkdir(const char *fname, mode_t mode) { if (dry_run) return 0; CHECK_RO @@ -138,7 +141,7 @@ int do_stat(const char *fname, STRUCT_STAT *st) { -#if HAVE_OFF64_T +#ifdef HAVE_OFF64_T return stat64(fname, st); #else return stat(fname, st); @@ -148,7 +151,7 @@ #if SUPPORT_LINKS int do_lstat(const char *fname, STRUCT_STAT *st) { -#if HAVE_OFF64_T +#ifdef HAVE_OFF64_T return lstat64(fname, st); #else return lstat(fn...
2001 Nov 03
3
unpredictable behaviour
I see very odd results from rsync 2.4.7pre1, the latest cvs version (sept 12, i think was the last modified file). We have a number of network-attached storage devices. 10/100 ethernet, nfs2 mounted (under nfs3, they buffer deletes, and recursive deletions fail). Usually, these are kept syncronized across a wan by a nightly cronjob, We have a few we keep in reserve, which we syncronize
2000 Aug 02
0
Fix for configure.in
...efines its own @@ -1747,7 +1746,7 @@ # If we don't have all of these then disable large # file support. # -echo "checking if large file support can be enabled" +AC_MSG_CHECKING([if large file support can be enabled]) AC_TRY_COMPILE([ #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8))) #include <sys/types.h> @@ -1758,16 +1757,17 @@ [int i], samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes,samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no) if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes";...
2011 Jun 07
0
LARGE_SMB_OFF_T problem
...) from samba server, it always failed. I investigated the source code and found LARGE_SMB_OFF_T option (in header file ./source/includes/includes.h) was undefined in my code, then I re-enable it, such as: #ifndef LARGE_SMB_OFF_T # if (defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T)) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)) # define LARGE_SMB_OFF_T 1 # endif #endif /* #undef LARGE_SMB_OFF_T */ The test result is the large file (> 4G) can be size-shown correctly and the download transfer seems OK. However, here I am suffering the new problem. When...
2002 Jan 25
0
suid files and bsd - correction
it's in syscall.c, not generator.c You'll have to save the status of the lstat, modify the mode in st, and return the lstat status. I don't know how to do it, though. #if SUPPORT_LINKS int do_lstat(const char *fname, STRUCT_STAT *st) { #if HAVE_OFF64_T return lstat64(fname, st); #else return lstat(fname, st); #endif } #endif Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'p...
2003 Mar 12
1
patch: typo's and gcc warnings
Two patches: one to correct the spelling of permissions (in comments, but such typos disturb me as well), and one to cast inode and dev to unsigned long before comparing, to prevent gcc giving a warning "comparison between signed and unsigned". Paul Slootman -------------- next part -------------- diff -ru orig/rsync-2.5.6/generator.c rsync-2.5.6/generator.c ---
2005 Nov 09
0
Samba 3.0.20b / AIX 5.3 / VFS Modules
...E_INITGROUPS HAVE_INNETGR HAVE_INO64_T HAVE_LIBPAM HAVE_LIBREADLINE HAVE_LINK HAVE_LLSEEK HAVE_LONGLONG HAVE_LSEEK64 HAVE_LSTAT64 HAVE_MEMMOVE HAVE_MEMSET HAVE_MKNOD HAVE_MKTIME HAVE_MMAP HAVE_NANOSLEEP HAVE_NATIVE_ICONV HAVE_NL_LANGINFO HAVE_NO_ACLS HAVE_OFF64_T HAVE_OPEN64 HAVE_OPENDIR64 HAVE_PATHCONF HAVE_PIPE HAVE_POLL HAVE_PRCTL HAVE_PREAD HAVE_PREAD64 HAVE_PUTUTLINE HAVE_PUTUTXLINE HAVE_PWRITE HAVE_PWRITE64 HAVE_RAND HAVE_RANDOM HAVE_READDIR64 HAVE_READLINK HAVE_REALPATH HAVE_RENAME HAVE_REWINDD...
2007 Aug 20
5
DO NOT REPLY [Bug 4899] New: When a mounted dir cannot be visited, rsync will halt there and the shell is halted, even "ctrl -c" can't quit it.
...has been negotiated. 2 read the filter. 3 send_file_list(). 4 send_files(). In step 3, rsync will examine the file one by one, to decide whether it is a symblic, whether it is filtered, and so on. It revokes do_stat to check the file status. int do_stat(const char *fname, STRUCT_STAT *st) { #if HAVE_OFF64_T return stat64(fname, st); #else return stat(fname, st); #endif } It revokes system function "stat", which will halt when the mounted dir is crashed. The "stat" issue is not due to rsync. But if the mountd dir is filtered out, rsync should work well. Solution: Modified &quot...
2002 Aug 05
5
[patch] read-devices
....5.5/rsync.h rsync-patched/rsync.h --- rsync-2.5.5/rsync.h Mon Mar 25 10:29:43 2002 +++ rsync-patched/rsync.h Mon Aug 5 10:05:15 2002 @@ -256,8 +256,9 @@ #else #define OFF_T off_t #define STRUCT_STAT struct stat #endif +#define OFF_T_MAX ( ~( ((OFF_T)1) << (sizeof(OFF_T)*8-1) ) ) #if HAVE_OFF64_T #define int64 off64_t #elif (SIZEOF_LONG == 8) @@ -387,8 +388,10 @@ struct map_struct { char *p; int fd,p_size,p_len; OFF_T file_size, p_offset, p_fd_offset; + char* m_ptr; /* start of data from last map_ptr() call */ + int m_len; /* length of data from last map_ptr() call */ }; s...