search for: linknam

Displaying 20 results from an estimated 48 matches for "linknam".

Did you mean: linkname
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...best->prev->next = best->next; + if (files == best) + files = files->next; + kill_hashfiles(files); + return best; +} + + +int link_by_hash(char *fnametmp,char *fname,struct file_struct *file) +{ + STRUCT_STAT st; + char *hashname = make_hash_name(file); + int first = 0, rc; + char *linkname; + long last_fnbr; + + if (file->length == 0) { + return robust_rename(fnametmp,fname,0644); + } + + if (do_stat(hashname, &st) == -1) { + char *dirname; + + /* Directory does not exist. */ + dirname = strdup(hashname); + *strrchr(dirname,'/') = 0; + if (do_mkdir(dirname, 0755...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...best->prev->next = best->next; + if (files == best) + files = files->next; + kill_hashfiles(files); + return best; +} + + +int link_by_hash(char *fnametmp,char *fname,struct file_struct *file) +{ + STRUCT_STAT st; + char *hashname = make_hash_name(file); + int first = 0, rc; + char *linkname; + long last_fnbr; + + if (file->length == 0) { + return robust_rename(fnametmp,fname); + } + + if (do_stat(hashname, &st) == -1) { + char *dirname; + + /* Directory does not exist. */ + dirname = strdup(hashname); + *strrchr(dirname,'/') = 0; + if (do_mkdir(dirname, 0755) ==...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...best->prev->next = best->next; + if (files == best) + files = files->next; + kill_hashfiles(files); + return best; +} + + +int link_by_hash(char *fnametmp,char *fname,struct file_struct *file) +{ + STRUCT_STAT st; + char *hashname = make_hash_name(file); + int first = 0, rc; + char *linkname; + long last_fnbr; + + if (file->length == 0) { + return robust_rename(fnametmp,fname,0644); + } + + if (do_stat(hashname, &st) == -1) { + char *dirname; + + /* Directory does not exist. */ + dirname = strdup(hashname); + *strrchr(dirname,'/') = 0; + if (do_mkdir(dirname, 0755...
2015 Jan 05
1
Symbolic links not visible on osx 10.10
...e sure - completely removing the `vfs objects` line. No change :-( One more observation: When creating a link in the osx client, it creates a file with some content in the share (no *real* symbolic link), so when I type the following in the osx client console it shows the link: ln -s non_existent linkname But on the server, `linkname` is actually a file with some weird content ... # cat linkname XSym 0012 08bcb178594050dcd60506a138b8c14c non_existent Looks like a candidate for the vfs_fruit module (translate symbolic links?!)? (tested it with vfs_fruit and without). Markus
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...+ iter->prev->next = iter->next; + iter->next->prev = iter->prev; + kill_hashfile(iter); + iter = next; + } + + return iter; +} + + +void link_by_hash(char *fname,struct file_struct *file) +{ + STRUCT_STAT st; + char *hashname = make_hash_name(file); + int first = 0; + char *linkname; + + if (do_stat(hashname, &st) == -1) { + char *dirname; + + /* Directory does not exist. */ + dirname = strdup(hashname); + *strrchr(dirname,'/') = 0; + if (do_mkdir(dirname, 0755) == -1 && errno != EEXIST) { + rprintf(FERROR, "mkdir %s: %s\n", dirname, +...
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...+ iter->prev->next = iter->next; + iter->next->prev = iter->prev; + kill_hashfile(iter); + iter = next; + } + + return iter; +} + + +void link_by_hash(char *fname,struct file_struct *file) +{ + STRUCT_STAT st; + char *hashname = make_hash_name(file); + int first = 0; + char *linkname; + + rprintf(FINFO, "hash link %s -> \"%s\"\n", full_fname(fname), + hashname); + if (do_stat(hashname, &st) == -1) { + char *dirname; + + /* Directory does not exist. */ + dirname = strdup(hashname); + *strrchr(dirname,'/') = 0; + if (do_mkdir(dirname, 07...
2006 Jul 23
1
link_to
Help! I wanted to make a ruby interpreted variable <%= @variable %> to be the linkname of my <%= link_to "linkname", {options" %> expression. How can I do that? -- Anime ni naruttebayo!!! Uchiha Itachi''s Trashcan@ptoys http://ptoys.proboards40.com/index.cgi?board=showroom&action=display&thread=1108620582 -------------- next part ------------...
2009 Mar 20
1
chan_ss7 with ringing, but no voice stream.
...;t select lines that are resetting or blocked. */ ? if(!cur->reset_done || (cur->blocked & (BL_LH|BL_RM|BL_RH|BL_UNEQUIPPED|BL_LINKDOWN))) { ? ? continue; ? ? } /* if((cur->cic % 2) == 0) {? */ /*change to this*/ if(((cur->cic % 2) == 0)&&0==strcasecmp(cur->link->name,linkname)) { ? ? ? /* Choose the first idle even circuit, if any. */ /*end of change*/? ? ? best = cur; ? ? ? best_prev = prev; ? ? ? break; ? ? } else if(best == NULL) { ? ? ? /* Remember the first odd circuit, in case no even circuits are ? ? ? ???available. */ ? ? ? best = cur; ? ? ? best_pre...
2007 Apr 23
0
Correction to PR #9631 (PR#9632)
...lt;- list.files(oldDir) oldNames <- character(0) for(i in 1:length(sn)){ fName <- grep(sn[i], allFiles, value = T) if(length(fName) == 0) stop(paste("sectionname", sn[i], "not found")) oldNames <- c(oldNames, fName) } sectionnames <- linkNames <- character(length(oldNames)) for(i in 1:length(oldNames)){ sectionnames[i] <- paste("sn", i, sep = "") linkNames[i] <- paste(sectionnames[i], fileExtension(oldNames[i]), sep = ".")...
2008 Mar 21
1
modifying bandwidth
...you had some questions about modifying bandwidth for flows/VNICs. I believe that should be fine in the recently released bits, could you please check and lets know if you still have any questions about this. Bandwidth limits can be modified using: links: dladm set-linkprop -p maxbw=<value> linkname flows: flowadm set-flowprop -p maxbw=<value> flowname (I tried netperf after modifying a flow''s bandwidth and it worked fine. If you want us to try some example let us know.) I remember you had questions about monitoring the usage, is that the one? thanks, -venu
2013 Oct 16
0
[BUG] Reflinking fails for files >2GB on 32-bit platform
...I´m happy to provide additional input! ====snip===demo program source======= #include <iostream> #include <errno.h> #include <stdio.h> #include <sys/types.h> #include <fcntl.h> #include <sys/ioctl.h> #include <unistd.h> bool os_create_reflink(const char* linkname, const char* fname) { int src_desc=open(fname, O_RDONLY); if( src_desc<0) return false; int dst_desc=open(linkname, O_WRONLY | O_CREAT | O_EXCL, S_IRWXU | S_IRWXG); if( dst_desc<0 ) { close(src_desc); return false; } #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_IOC_CL...
2004 Jul 12
0
Multipath load balance issues
...en path or less? Anyway, after partially failing on the multipath front, the idea was to simply rewrite the routing tables by using connection specific up/down scripts via the pppd. If I run the scripts manually all is well; but they don''t get called in a specific manner by ppp. I have linkname="swiftel" in the peers/ configuration file also named "swiftel" and a sub folder named swiftel in /etc/ppp/ip-down.d/ /etc/ppp/ip-up.d/. When the DSL link fails, I have attempted fire the rerouting scripts off from /etc/ppp/ip-down.d/ with... if [ -n "$LINKNAME" ]...
2008 Jul 04
3
Linkt_to problems
I can''t explain where those differences come from. In one Project I can use the link_to without any problems. Like this: <%= link_to "LINKNAME", :action => "destroy", :id => ID %> But in another project... That happens <%= link_to "delete", :action => "destroy", :id => ticket.id %> <%= link_to "edit", :action => "edit", :id => ticket.id %> and that...
2015 Jan 05
4
Symbolic links not visible on osx 10.10
Hello, I'm using the latest git 4.2.0 samba version (4.2.0rc4-GIT-93b73bf, to get latest vfs_fruit module). I noticed the following strange behavior with OSX clients (10.10.1, 10.10.2 beta): When they connect using either smb 3.0 or 2.1 (verified on the server with `smbstatus` and the `version` column `SMB3_00` or `SMB2_10` respectively), symbolic links pointing at non existent files are not
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-
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.
...excluded(thisname, 1, filter_level)) { rprintf(FINFO, "Excluding %s\n", thisname); return NULL; } else if (stp && S_ISDIR(stp->st_mode)) { st = *stp; /* Needed for "symlink/." with --relative. */ *linkname = '\0'; /* make IBM code checker happy */ } else if (readlink_stat(thisname, &st, linkname) != 0) { ... } } -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or...
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...char *find_device(const char *mtab_file, dev_t dev) * On newer Linux kernels we can use sysfs to get a backwards mapping * from device names to standard filenames */ -static const char *find_device_sysfs(dev_t dev) +static char *find_device_sysfs(dev_t dev) { char sysname[64]; char linkname[PATH_MAX]; @@ -1281,9 +1281,20 @@ err: return rv; } -static const char *get_devname(const char *path) +static char *dupname(const char *name) { - const char *devname = NULL; + char *out = NULL; + int len = 0; + if (name) + len = strlen(name); + if (len > 0) +...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...char *find_device(const char *mtab_file, dev_t dev) * On newer Linux kernels we can use sysfs to get a backwards mapping * from device names to standard filenames */ -static const char *find_device_sysfs(dev_t dev) +static char *find_device_sysfs(dev_t dev) { char sysname[64]; char linkname[PATH_MAX]; @@ -1281,9 +1281,20 @@ err: return rv; } -static const char *get_devname(const char *path) +static char *dupname(const char *name) { - const char *devname = NULL; + char *out = NULL; + int len = 0; + if (name) + len = strlen(name); + if (len > 0) +...
2004 Jan 19
1
File that "vanish"es between readdir and stat is not IO error
Using rsync 2.6.0 with --verbose and doing a pull. >?receiving file list ... readlink "{FILENAME}" failed: >?No such file or directory >?done >?IO error encountered - skipping file deletion The file was a temporary file that was being deleted just as the rsync was run. So while the file list was being built, it was there when the directory was read but had vanished by the
2018 Feb 16
1
.glusterfs grown larger than volume content
Hello All, I posting this email rearding the gluster issue in http://lists.gluster.org/pipermail/gluster-users/2016-April/026493.html i searched this everywhere but still having no answer . we getting a big problem with the out of space now. Kindly help me. Rasika -------------- next part -------------- An HTML attachment was scrubbed... URL: