search for: readlink

Displaying 20 results from an estimated 566 matches for "readlink".

Did you mean: readline
2016 Feb 29
3
Sys.readlink (on BSD vs Linux)
Hello, sorry for not being clear enough. My problem is represented with the following code, running on OSX: mkdir ~/test ln -s ~/test ~/testlink touch ~/test/foo Rscript -e 'Sys.readlink(c("~/test/foo", "~/testlink/foo")); normalizePath(c("~/test/foo","~/testlink/foo"))' I expected `Sys.readlink` to show the same output as `normalizePath`. Also, I think the readlink.h imported to R to be the same as from the system's `readlink` comma...
2016 Feb 29
2
Sys.readlink (on BSD vs Linux)
Hello together, the function `Sys.readlink` uses the system's readlink command to resolve symlink paths. On OSX/BSD the command has a different meaning than on Linux [1]. There exists the tool 'realpath', which seems suitable for the task, at least applied at the command line level [2]. It is used in `normalizePath`. I suggest...
2016 Feb 29
0
Sys.readlink (on BSD vs Linux)
...AM, Sven Templer <sven.templer at gmail.com> wrote: > > Hello, > > sorry for not being clear enough. > > My problem is represented with the following code, running on OSX: > > mkdir ~/test > ln -s ~/test ~/testlink > touch ~/test/foo > Rscript -e 'Sys.readlink(c("~/test/foo", "~/testlink/foo")); normalizePath(c("~/test/foo","~/testlink/foo"))' > > I expected `Sys.readlink` to show the same output as `normalizePath`. Why? To quote from the Sys.readlink() docs: Value: A character vector of the sam...
2014 Apr 15
1
[PATCH] Null terminate before printing the link name.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This fixes garbage I'm seeing consistently from readlink /dev/disk/by-uuid/..... during boot. Signed-off-by: Rafi Rubin <rafi at seas.upenn.edu> - --- usr/utils/readlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c index 5ea4e41..75a0735 100644 - --- a/usr/utils/readlink.c...
2014 Apr 15
0
[klibc:master] readlink: Handle multiple input arguments
...p://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=1ba3e80738407d13bc4a71812578848b6f657e23 Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 15 Apr 2014 09:34:45 -0700 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 15 Apr 2014 09:34:45 -0700 readlink: Handle multiple input arguments Handle multiple links as parguments passed to readlink(). Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/utils/readlink.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/usr/utils/readlink.c b...
2016 Jan 06
0
[klibc:master] readlink: Add -f option
...it.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4d9db8a092aee0dfaebb65e0b4f054a40d92cbd9 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Wed, 6 Jan 2016 01:09:16 +0000 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 17:48:48 -0800 [klibc] readlink: Add -f option This is needed to support mounting non-root filesystems in initramfs-tools. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/utils/readlink.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 ins...
2014 Apr 15
0
[klibc:master] readlink: Better buffer handling
...p://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4a66f39cb53fde78c4518615382be83a9e2bff0b Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 15 Apr 2014 09:27:38 -0700 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 15 Apr 2014 09:27:38 -0700 readlink: Better buffer handling - Allow PATH_MAX bytes, not just a hard-coded 128 bytes - Just allocate the buffer on the stack, no need for malloc() - Use puts() rather than printf() Reported-by: Rafi Rubin <rafi at seas.upenn.edu> Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> ---...
2014 Apr 15
0
[klibc:master] readlink: Reduce size by calling _fwrite() instead of puts()
...p://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=06e395cd75dc79289ae789c146795189c32babd8 Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 15 Apr 2014 13:23:49 -0700 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 15 Apr 2014 13:23:49 -0700 readlink: Reduce size by calling _fwrite() instead of puts() We know how long the output is, so we might as well call _fwrite() directly, with the explicit termination set to \n instead of \0. Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/utils/readlink.c | 4 ++-- 1 file changed,...
2015 Mar 03
2
[PATCH] actions: improve man page links
...traces are disabled unless the environment variable C<LIBGUESTFS_TRACE> is defined and set to C<1>. @@ -2700,10 +2700,10 @@ On return you get a list of strings, with a one-to-one correspondence to the C<names> list. Each string is the value of the symbolic link. -If the C<readlink(2)> operation fails on any name, then +If the L<readlink(2)> operation fails on any name, then the corresponding result string is the empty string C<\"\">. However the whole operation is completed even if there -were C<readlink(2)> errors, and so you can call this +...
2016 Jan 06
3
[PATCH klibc 0/3] Changes to support initramfs-tools 0.117
initramfs-tools version 0.117 requires 'readlink -f' and 'mount -o defaults' to work. The first two patches were previously submitted but not applied. Ben. Ben Hutchings (3): Implement realpath() readlink: Add -f option mount: Implement -o defaults usr/include/stdlib.h | 2 ++ usr/klibc/Kbuild | 2 +- usr/klibc/re...
2014 Sep 27
1
[PATCH 2/2] readlink: Add -f option
This is needed to support mounting non-root filesystems in initramfs-tools. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- initramfs-tools 0.117 only works with busybox; this should allow it to work with klibc again. Ben. --- a/usr/utils/readlink.c +++ b/usr/utils/readlink.c @@ -7,24 +7,45 @@ const char *progname; static __noreturn usage(void) { - fprintf(stderr, "Usage: %s link...\n", progname); + fprintf(stderr, "Usage: %s [-f] link...\n", progname); exit(1); } int main(int argc, char *argv[]) { + int c, f_f...
2003 Mar 16
2
> 2GB files on solaris with largefiles enabled!
Hello, I'm facing a problem syncing files which is over 2GB size, eventhough i searched the archives and it been mentioned its possible if largefiles option is enabled, but still its giving me problems. i.e: building file list ... readlink dir1/oracle_data1.tar: Value too large for defined data type readlink dir1/oracle_data2.tar: Value too large for defined data type readlink dir1/oracle_data3.tar: Value too large for defined data type # du -sk *.tar 5612368 oracle_data1.tar 5870736 oracle_data2.tar 3502240 oracle_data3.tar Bash...
2018 Apr 16
1
lstat & readlink calls during glusterfsd process startup
Hi all, I am on gluster 3.10.5 with one EC volume 16+4. One of the machines go down previous night and I just fixed it and powered on. When glusterfsd processes started they consume all CPU on the server. strace shows every process goes over in bricks directory and do a lstat & readlink calls. Each brick directory is 8TB, %60 full. I waited for 24 hours for it to finish but it did not. I stopped glusterd and restarted it but same thing happens again. Why on startup glusterfsd processes traverse brick directory? Is it related to self heal? This happened one time before and I someh...
2009 Apr 28
1
rsync fails with "Permission denied" errors on random files over NFS
...ackupserver:backup/current The rsync command is run as the root user on the mailserver. /root/include contains the line: /data /root/exclude is empty at this moment. The problem is that almost every day, I get an e-mail from cron saying that rsync has failed. It gives errors like these: rsync: readlink "/data/mail/virtual/xx-net.dk/martin/cur/1240839853.V11I228039M884633.mail:2,RS" failed: Permission denied (13) rsync: readlink "/data/mail/virtual/xx-net.dk/martin/cur/1240830282.V11I228031M150189.mail:2,S" failed: Permission denied (13) rsync: readlink "/data/mail/virtual...
2008 May 20
4
Need help with rsync.
...host. This is the relevant part of the command: rsync -avz --rsh=ssh --delete-after /var/data/pas-redmine root at inet01.mississauga.harte-lyne.ca:/var/data The connection is made and a good deal of material is successfully transferred. I am however getting a number of permission errors: rsync: readlink "/var/data/pas-redmine/lib/tabular_form_builder.rb" failed: Permission denied (13) rsync: readlink "/var/data/pas-redmine/lib/redmine.rb" failed: Permission denied (13) rsync: readlink "/var/data/pas-redmine/lib/diff.rb" failed: Permission denied (13) and many more:...
2003 Jan 08
3
long directory name problem
Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. -- ER
2019 Jan 18
0
[klibc:master] remove unused variables
...$KLIBC/usr/klibc/asprintf.c: In function 'asprintf': $KLIBC/usr/klibc/asprintf.c:14:8: warning: unused variable 'p' [-Wunused-variable] char *p; $KLIBC/usr/klibc/asprintf.c:13:6: warning: unused variable 'bytes' [-Wunused-variable] int bytes; $KLIBC/usr/utils/readlink.c: In function 'main': $KLIBC/usr/utils/readlink.c:20:6: warning: unused variable 'i' [-Wunused-variable] int i; Signed-off-by: Greg Thelen <gthelen at google.com> Link: https://www.zytor.com/pipermail/klibc/2018-February/003977.html Signed-off-by: Ben Hutchings <ben...
2006 Sep 02
0
Dir.readlink
Hi all, I was thinking we should have a Dir.readlink method that would follow a junction to its destination. Sound good? Is ''readlink'' a good choice? Or should we call it read_junction? Regards, Dan
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...ons(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index 28d1572..ac43daa 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -50,12 +50,7 @@ ovirt_boot_setup() { fi # check that /boot mounted ok and find partition number for GRUB - eval $(readlink -f /dev/disk/by-label/$grub_dev_label|awk {' - print "disk=" substr($1,1,length($1)-1); - print "disk2=" substr($1,1,length($1)-2); - partN=substr($1,length($1),1); partN--; - print "partN=" partN; - }') + get_part_info $(readl...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
This is needed as the basis for the readlink -f option. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -92,4 +92,6 @@ static __inline__ int grantpt(int __fd) return 0; /* devpts does this all for us! */ } +__extern char *realpath(const char *, char *); + #endif...