search for: have_link

Displaying 20 results from an estimated 41 matches for "have_link".

Did you mean: hash_link
2002 Aug 02
1
[patch] --link-dest
...->st_uid != file->uid || st->st_gid != file->gid) { + return 0; + } + } + /* if always checksum is set then we use the checksum instead of the file time to determine whether to sync */ @@ -356,6 +366,18 @@ statret = -1; if (statret == -1) errno = saveerrno; +#if HAVE_LINK + else if (link_dest && !dry_run) { + if (do_link(fnamecmpbuf, fname) != 0) { + if (verbose > 0) + rprintf(FINFO,"link %s => %s : %s\n", + fnamecmpbuf, + fname, + strerror(errno)); + } + fnamecmp = fnamecmpbuf; + } +#endif else fnamecmp =...
2011 Oct 08
1
Rails view spec expectations/matchers
...h1").should be node.find_link("Blah1").should be node.find_link("Comments").should be end end end Is there a better way? Including Capybara just for the finders/matchers seems kinda heavy. Also it would be nice if I could write stuff like node.should have_link("Home"), to be more consistent with RSpec matchers (though I guess I could write custom matchers to wrap all the Capybara stuff... has anyone already done this?). Thanks for the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.o...
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...giving the compression level? */ {"compress", 'z', POPT_ARG_NONE, &do_compression, 0, 0, 0 }, {"daemon", 0, POPT_ARG_NONE, &am_daemon, 0, 0, 0 }, @@ -585,6 +588,18 @@ return 0; #endif + case OPT_LINK_BY_HASH: +#if HAVE_LINK + link_by_hash_dir = (char *)poptGetOptArg(pc); + break; +#else + snprintf(err_buf, sizeof err_buf, + "hard links are not supported on this %s\n", + am_server ? "server" : "client"); + rprintf(FERROR, "ERROR: %s", err_buf); + return 0; +#end...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...NU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/* This file contains code used by the --link-by-hash option. */ + +#include "rsync.h" + +extern char *link_by_hash_dir; + +#ifdef HAVE_LINK + +char* make_hash_name(struct file_struct *file) +{ + char hash[33], *dst; + unsigned char *src; + unsigned char c; + int i; + + src = (unsigned char*)file->u.sum; + for (dst = hash, i = 0; i < 4; i++, src++) { + c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...NU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/* This file contains code used by the --link-by-hash option. */ + +#include "rsync.h" + +extern char *link_by_hash_dir; + +#ifdef HAVE_LINK + +char* make_hash_name(struct file_struct *file) +{ + char hash[33], *dst; + unsigned char *src; + unsigned char c; + int i; + + src = (unsigned char*)file->u.sum; + for (dst = hash, i = 0; i < 4; i++, src++) { + c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...NU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/* This file contains code used by the --link-by-hash option. */ + +#include "rsync.h" + +extern char *link_by_hash_dir; + +#ifdef HAVE_LINK + +char* make_hash_name(struct file_struct *file) +{ + char hash[33], *dst; + unsigned char *src; + unsigned char c; + int i; + + src = (unsigned char*)file->u.sum; + for (dst = hash, i = 0; i < 4; i++, src++) { + c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c...
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...NU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/* This file contains code used by the --link-by-hash option. */ + +#include "rsync.h" + +extern char *link_by_hash_dir; + +#ifdef HAVE_LINK + +char* make_hash_name(struct file_struct *file) +{ + char hash[33], *dst; + unsigned char *src; + unsigned char c; + int i; + + src = (unsigned char*)file->u.sum; + for (dst = hash, i = 0; i < 4; i++, src++) { + c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c...
2004 Apr 15
0
Multiple compare-dest args
...T_LINK_DEST, 0, 0 }, /* TODO: Should this take an optional int giving the compression level? */ {"compress", 'z', POPT_ARG_NONE, &do_compression, 0, 0, 0 }, @@ -564,9 +565,31 @@ checksum_seed = FIXED_CHECKSUM_SEED; break; + case OPT_COMPARE_DEST: +#if HAVE_LINK + if (num_comp_dest >= MAX_COMP_DEST-1) { + rprintf(FERROR, "ERROR: %s\n", "too many --compare-dest args given"); + return 0; + } + compare_dest[num_comp_dest] = (char *)poptGetOptArg(pc); + num_comp_dest++; + break; +#else + snprintf(err_buf, sizeof err_buf...
2002 Mar 08
1
[PATCH][RFC] space saving incrementals
...->st_uid != file->uid || st->st_gid != file->gid) { + return 0; + } + } + /* if always checksum is set then we use the checksum instead of the file time to determine whether to sync */ @@ -352,6 +363,17 @@ statret = -1; if (statret == -1) errno = saveerrno; +#if HAVE_LINK + else if (link_dest) + if (do_link(fnamecmpbuf, fname) != 0) { + if (verbose > 0) + rprintf(FINFO,"link %s => %s : %s\n", + fnamecmpbuf, + fname, + strerror(errno)); + fnamecmp = fnamecmpbuf; + } +#endif else fnamecmp = fnamecmpbuf; } Index: options.c...
2002 Mar 22
1
[PATCH] --link-dest option
...->st_uid != file->uid || st->st_gid != file->gid) { + return 0; + } + } + /* if always checksum is set then we use the checksum instead of the file time to determine whether to sync */ @@ -382,6 +392,17 @@ statret = -1; if (statret == -1) errno = saveerrno; +#if HAVE_LINK + else if (link_dest) + if (do_link(fnamecmpbuf, fname) != 0) { + if (verbose > 0) + rprintf(FINFO,"link %s => %s : %s\n", + fnamecmpbuf, + fname, + strerror(errno)); + fnamecmp = fnamecmpbuf; + } +#endif else fnamecmp = fnamecmpbuf; } Index: options.c...
2012 May 07
0
Solved problem with hard links and schg flag under FreeBSD
...syscall.c.txt is a patch which have the be applied after fileflags.diff. Please have a look at the changes. What is the "official" way of asking for inclusion in the rsync distribution? Reporting a bug via bugzilla? Best regards Franz -------------- next part -------------- #ifdef HAVE_LINK int do_link(const char *fname1, const char *fname2) { if (dry_run) return 0; RETURN_ERROR_IF_RO_OR_LO; if (link(fname1, fname2) == 0) return 0; #ifdef SUPPORT_FORCE_CHANGE if (force_change && (errno == EPERM || errno == EACCES)) { char parent[MAXPATHLEN]; int parent_flags; int...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...un) return 0; CHECK_RO return unlink(fname); } -int do_symlink(char *fname1, char *fname2) +#if SUPPORT_LINKS +int do_symlink(const char *fname1, const char *fname2) { if (dry_run) return 0; CHECK_RO return symlink(fname1, fname2); } +#endif -#if HAVE_LINK -int do_link(char *fname1, char *fname2) +#if SUPPORT_HARD_LINKS +int do_link(const char *fname1, const char *fname2) { if (dry_run) return 0; CHECK_RO @@ -58,8 +61,8 @@ return lchown(path, owner, group); } -#if HAVE_MKNOD -int do_mknod(char *pathname, mode_t mode, d...
2015 Feb 06
2
Fwd: Waiting for Reply regarding "TestCases Failure"
...PRINTF_ISO snprintf #define SNPRINTF snprintf #define HAVE_ZLIB_H 1 #define HAVE_UUID_UUID_H 1 #define HAVE_UUID_UNPARSE_LOWER 1 #define HAVE_FORK 1 #define HAVE_SOCKETPAIR 1 #define SOCKLEN_T socklen_t #define HAVE_FDATASYNC 1 #define HAVE_FSYNC 1 #define HAVE_PREAD 1 #define HAVE_PWRITE 1 #define HAVE_LINK 1 configure: exit 0 " -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20150206/c73089b4/attachment-0002.html>
2003 Dec 25
1
How to tell if option "with-acl-support" is compiledin Solaris smbd?
...HAVE_LDAP_INIT HAVE_LDAP_INITIALIZE HAVE_LDAP_SET_REBIND_PROC HAVE_LIBCOM_ERR HAVE_LIBGEN HAVE_LIBGSSAPI_KRB5 HAVE_LIBK5CRYPTO HAVE_LIBKRB5 HAVE_LIBLBER HAVE_LIBLDAP HAVE_LIBNSL HAVE_LIBPAM HAVE_LIBRESOLV HAVE_LIBSEC HAVE_LIBSENDFILE HAVE_LIBSOCKET HAVE_LINK HAVE_LLSEEK HAVE_LONGLONG HAVE_LSEEK64 HAVE_LSTAT64 HAVE_MEMMOVE HAVE_MEMORY_KEYTAB HAVE_MEMSET HAVE_MKNOD HAVE_MKTIME HAVE_MMAP HAVE_NATIVE_ICONV HAVE_NL_LANGINFO HAVE_OPEN64 HAVE_PASSWD_PW_AGE HAVE_PASSWD_PW_COMMENT HAVE_PATHCONF HAVE_PIPE HAV...
2005 Nov 09
0
Samba 3.0.20b / AIX 5.3 / VFS Modules
...E_FUNCTION_MACRO HAVE_GETCWD HAVE_GETDIRENTRIES HAVE_GETGRENT HAVE_GETGRNAM HAVE_GETMNTENT HAVE_GETNETGRENT HAVE_GETRLIMIT HAVE_GETTIMEOFDAY_TZ HAVE_GLOB HAVE_GRANTPT HAVE_ICONV HAVE_IFACE_AIX HAVE_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_POL...
2007 Sep 24
2
Where is the tdbsam password database file?
...B HAVE_LDAP HAVE_LDAP_ADD_RESULT_ENTRY HAVE_LDAP_INIT HAVE_LDAP_INITIALIZE HAVE_LDAP_SET_REBIND_PROC HAVE_LGETXATTR HAVE_LIBCOM_ERR HAVE_LIBGSSAPI_KRB5 HAVE_LIBK5CRYPTO HAVE_LIBKRB5 HAVE_LIBLBER HAVE_LIBLDAP HAVE_LIBPAM HAVE_LIBREADLINE HAVE_LIBRESOLV HAVE_LINK HAVE_LINUX_READAHEAD HAVE_LINUX_XFS_QUOTAS HAVE_LISTXATTR HAVE_LLISTXATTR HAVE_LLSEEK HAVE_LONGLONG HAVE_LONG_LONG HAVE_LREMOVEXATTR HAVE_LSEEK64 HAVE_LSETXATTR HAVE_LSTAT HAVE_LSTAT64 HAVE_MAGIC_IN_KRB5_ADDRESS HAVE_MAKEDEV HAVE_MEMALIGN HAVE_MEMCPY...
2005 Oct 19
1
samba with ADS. winbindd ignore for user authentication
...ING_TO_KEY_SALT HAVE_LDAP HAVE_LDAP_DOMAIN2HOSTLIST HAVE_LDAP_INIT HAVE_LDAP_INITIALIZE HAVE_LDAP_SET_REBIND_PROC HAVE_LIBASN1 HAVE_LIBCOM_ERR HAVE_LIBGSSAPI HAVE_LIBKRB5 HAVE_LIBLBER HAVE_LIBLDAP HAVE_LIBPAM HAVE_LIBREADLINE HAVE_LIBROKEN HAVE_LINK HAVE_LONGLONG HAVE_MAKEDEV HAVE_MEMMOVE HAVE_MEMSET HAVE_MKNOD HAVE_MKTIME HAVE_MMAP HAVE_NANOSLEEP HAVE_NATIVE_ICONV HAVE_NL_LANGINFO HAVE_NO_ACLS HAVE_NO_AIO HAVE_PATHCONF HAVE_PIPE HAVE_POLL HAVE_PREAD HAVE_PWRITE HAVE_QUOTA...
2005 May 18
1
Samba Comple Problem on Solaris 2.8
...E_LDAP_SET_REBIND_PROC HAVE_LIBASN1 HAVE_LIBCOM_ERR HAVE_LIBGEN HAVE_LIBGSSAPI HAVE_LIBK5CRYPTO HAVE_LIBKRB5 HAVE_LIBLBER HAVE_LIBLDAP HAVE_LIBNSL HAVE_LIBPAM HAVE_LIBREADLINE HAVE_LIBRESOLV HAVE_LIBROKEN HAVE_LIBSEC HAVE_LIBSENDFILE HAVE_LIBSOCKET HAVE_LINK HAVE_LLSEEK HAVE_LONGLONG HAVE_LSEEK64 HAVE_LSTAT64 HAVE_MEMMOVE HAVE_MEMSET HAVE_MKNOD HAVE_MKTIME HAVE_MMAP HAVE_NL_LANGINFO HAVE_NO_ACLS HAVE_OPEN64 HAVE_PASSWD_PW_AGE HAVE_PASSWD_PW_COMMENT HAVE_PATHCONF HAVE_PIPE HAVE_POLL HAVE_PREAD HAV...
2005 May 07
0
force group broken in 3.0.14?
...E HAVE_KV5M_KEYTAB HAVE_LDAP HAVE_LDAP_DOMAIN2HOSTLIST HAVE_LDAP_INIT HAVE_LDAP_INITIALIZE HAVE_LDAP_SET_REBIND_PROC HAVE_LGETXATTR HAVE_LIBCOM_ERR HAVE_LIBCRYPTO HAVE_LIBGSSAPI_KRB5 HAVE_LIBK5CRYPTO HAVE_LIBKRB5 HAVE_LIBLBER HAVE_LIBLDAP HAVE_LIBPAM HAVE_LIBRESOLV HAVE_LINK HAVE_LINUX_XFS_QUOTAS HAVE_LISTXATTR HAVE_LLISTXATTR HAVE_LLSEEK HAVE_LONGLONG HAVE_LREMOVEXATTR HAVE_LSEEK64 HAVE_LSETXATTR HAVE_LSTAT64 HAVE_MAKEDEV HAVE_MEMMOVE HAVE_MEMSET HAVE_MKNOD HAVE_MKTIME HAVE_MMAP HAVE_NANOSLEEP HAVE_NATIVE_ICONV HAVE_NL_LANGINFO HA...
2017 Jun 08
0
2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
...HAVE_LDAP HAVE_LDAP_ADD_RESULT_ENTRY HAVE_LDAP_INIT HAVE_LDAP_INITIALIZE HAVE_LDAP_SASL_WRAPPING HAVE_LDAP_SET_REBIND_PROC HAVE_LGETXATTR HAVE_LIBGSSAPI_KRB5 HAVE_LIBK5CRYPTO HAVE_LIBKRB5 HAVE_LIBLBER HAVE_LIBLDAP HAVE_LIBPAM HAVE_LIBRESOLV HAVE_LIBZ HAVE_LINK HAVE_LINUX_READAHEAD HAVE_LINUX_SPLICE HAVE_LINUX_XFS_QUOTAS HAVE_LISTXATTR HAVE_LLISTXATTR HAVE_LLSEEK HAVE_LONG_LONG HAVE_LREMOVEXATTR HAVE_LSEEK64 HAVE_LSETXATTR HAVE_LSTAT HAVE_LSTAT64 HAVE_MAGIC_IN_KRB5_ADDRESS HAVE_MEMALIGN HAVE_MEMCPY HAVE_MEMM...