search for: fullpath

Displaying 20 results from an estimated 78 matches for "fullpath".

2019 Feb 14
1
Proposed function file.backup
.... ##' ##' Inserts the date-time of the most recent modification at the ##' end of the file name, before the extension. ##' ##' Return is the new file name that was created, using whatever ##' path information was provided in the file's original name. However, ##' the fullpath argument can be set to TRUE, so a path with the ##' full directory name will be created and returned. ##' ##' @param name A character string for the name of the file. ##' @param fullpath Return the full directory path to the ##' file. Default FALSE, return only the file name...
2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
...( !fnmatch(rule, dev, 0 ) ) + return res; + + } + return 1; +} + +int btrfs_scan_block_devices(int run_ioctl, int checklist) +{ + + struct stat st; + int ret; + int fd; + struct btrfs_fs_devices *tmp_devices; + u64 num_devices; + FILE *proc_partitions; + int i; + char buf[1024]; + char name[100], fullpath[110]; + + if(checklist) + init_device_checklist(BTRFSDEVICELIST); + + proc_partitions = fopen("/proc/partitions","r"); + if (!proc_partitions) { + fprintf(stderr, "Unable to open ''/proc/partitions'' for scanning\n"); + return -ENOENT; + } + /* skip...
2013 Mar 21
4
[PATCH] btrfs-progs: make btrfs dev scan multi path aware
...und\n"); } close(fd); - return 0; + return ret; } static const char * const cmd_ready_dev_usage[] = { diff --git a/utils.c b/utils.c index 7b028a7..2fc6c32 100644 --- a/utils.c +++ b/utils.c @@ -1105,25 +1105,32 @@ again: if (!S_ISBLK(st.st_mode)) { continue; } - fd = open(fullpath, O_RDONLY); + fd = open(fullpath, O_RDONLY|O_EXCL); if (fd < 0) { /* ignore the following errors: ENXIO (device don''t exists) ENOMEDIUM (No medium found -> like a cd tray empty) + EBUSY (when mp disk is opened + using non-mp path). */ - if(errno...
2011 Aug 03
2
[PATCH v3 0/2] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. This functionality is implemented in a newly introduced run_parts() call, which calls scandir() to iterate through files which in then executes in sequence. run_parts() is also available as a
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...preserving atime causes ctime to not be preserved. *** Patch follows *** *** backup.c@@/main/original/1 Tue Apr 9 14:02:14 2002 --- backup.c Tue Apr 9 15:21:56 2002 *************** *** 110,116 **** rprintf(FERROR,"make_bak_dir stat %s : %s\n",fullpath,strerror(errno)); } else { st2=&st; ! set_modtime(fullpath,st2->st_mtime); if(do_lchown(fullpath,st2->st_uid,st2->st_gid)!=0) { rprintf(FERROR,"make_bak_dir chown %s : %s\n",fullpath,strerror(errn...
2012 May 28
2
[GIT-PULL] fix can't call COM32 module with full path
...e2b52962ece6daa209b4ba6b: com32: remove duplicate modules (2012-05-22 20:59:51 -0300) are available in the git repository at: git://github.com/aericson/syslinux.git elflink for you to fetch changes up to 7a505bfa33a2fda1d1a687ef42fe7bbf4c0f37ec: ldlinux: fixes bug that happens when using fullpath for a COM32 module (2012-05-28 07:19:39 -0300) ---------------------------------------------------------------- Andre Ericson (1): ldlinux: fixes bug that happens when using fullpath for a COM32 module com32/lib/sys/module/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a...
2013 Dec 26
0
To see fullpath instead of realitive path in chrooted sftp
Hi In a chrooted sftp syatem i'm trying to log (user file transaction log) full path instead of relative path. (like /home/user1/file/a.txt instead of /file/a.txt). Without chroot sftp it works fine, but in chrooted system i do not get full path, which i need badly. Goggled for it for so long, but no luck. Is there any way? any hint from you will be appreciated. Thnaks Ashfaq
2001 Apr 14
4
Code to hide inaccessible files/directories
...ut because we were migrating from a Novell server, and this is apparently the default behaviour for Netware. This hack was implemented on a FreeBSD 4.2-STABLE box using samba 2.0.7, and it has been working predictably for about a week. A few coding notes: 1. I'm not too sure about the size of fullPath. 2048 seemed a value that wouldn't normally be exceeded, but I don't have any proof that it's a good size. It may be too large or too small (compared to system limits, of course) In the final analysis, it should be the same size as the max path size of the system it's running on. 2....
2013 Nov 16
16
[PATCH] BTRFS-PROG: recursively subvolume snapshot and delete
Hi All, the following patches implement the recursively snapshotting and deleting of a subvolume. To snapshot recursively you must pass the -R switch: # btrfs subvolume create sub1 Create subvolume ''./sub1'' # btrfs subvolume create sub1/sub2 Create subvolume ''sub1/sub2'' # btrfs subvolume snapshot -R sub1 sub1-snap Create a snapshot of
2002 Aug 05
2
filename of source file
Hi Is there a command which will return the complete pathname of the file from which the current source is being read? I want something which can be inserted into any .r file and it will be able to ascertain exactly where it is, so that it can save data to the same directory, no matter where it is, regardless of what the current working directory is. Dave Richmond daver969 at mac.com
2010 Aug 19
6
Frequent "Could not retrieve file metadata" errors
...n-node.conf]) Failed to retrieve current state of resource: Could not retrieve file metadata for puppet://puppet.hq.eso.org/modules/munin/munin-node.c onf: at /etc/puppet/manifests/site.pp:41 The relevant definition from /etc/puppet/manifests/site.pp is: # Generic config file define config-file ($fullpath, $source, $mode = ''644'') { file { $fullpath: source => "puppet://puppet.hq.eso.org/modules/${source}", backup => mainbackup, mode => $mode, ensure => file, group => root, owner => root } }...
2008 Jan 17
0
[PATCH] [Mini-OS] add xenbus token support and separate watch event queues
...s/mini-os/netfront.c Thu Jan 17 14:58:01 2008 +0000 +++ b/extras/mini-os/netfront.c Thu Jan 17 15:08:23 2008 +0000 @@ -26,20 +26,6 @@ struct net_info { } net_info; - -char* xenbus_printf(xenbus_transaction_t xbt, - char* node,char* path, - char* fmt,unsigned int arg) -{ - char fullpath[256]; - char val[256]; - - sprintf(fullpath,"%s/%s",node,path); - sprintf(val,fmt,arg); - xenbus_write(xbt,fullpath,val); - - return NULL; -} #define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) diff -r 33d1c7f9217a -r 112c1180720c extras/mini-os...
2005 Apr 04
0
io timeout after 180 seconds
...;=> 'Whether to do incremental backups using hard links or real files. ~ * Default option is true. See "Backup Types" in the README for more info.' ~ * 'post_command' => 'A shell command to run after a successful backup. Replaces %fullPath% ~ * and %backupType% with the real values.' ~ * 'post_error_command' => 'Same as post_command, but run when an error occurs.' ~ * ), ~ * @type array ~ */ $a_backupHosts = array( ~ 'luke' => array( ~ 'enabled'...
2006 Sep 24
1
Add-on patch to support .pls .asx .ram .qtl listing formats
...ot;)) + return "audio/x-pn-realaudio"; + else if(!strcmp(ext, "qtl")) + return "application/x-quicktimeplayer"; else return "application/octet-stream"; } @@ -376,6 +384,10 @@ int ret = 0; char *fullpath; int m3u_requested = 0, m3u_file_available = 1; + int pls_requested = 0, pls_file_available = 1; + int asx_requested = 0, asx_file_available = 1; + int ram_requested = 0, ram_file_available = 1; + int qtl_requested = 0, qtl_file_available = 1; ice_config_t *config; FILE *...
2012 Oct 24
2
[BUG][PATCH][BTRFS-PROGS] Bug overflow fix
...if (!pending) return -ENOMEM; - strcpy(pending->name, dirname); + snprintf(pending->name, sizeof(pending->name), "%s", dirname); again: dirname_len = strlen(pending->name); @@ -1010,7 +1010,8 @@ again: ret = -ENOMEM; goto fail; } - strcpy(next->name, fullpath); + snprintf(next->name, sizeof(next->name), + "%s", fullpath); list_add_tail(&next->list, &pending_list); } if (!S_ISBLK(st.st_mode)) { -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a messag...
2012 Aug 21
1
Error: ReadItem: unknown type 98, perhaps written by later version of R
...in the out file: Error: ReadItem: unknown type 98, perhaps written by later version of R Execution halted Checking through google one had recommended rm ~/.RData I applied it, but the run again fails, when submitting through SAS for block 19. [SAS in macro lang.] %sysexec bsub R CMD BATCH &fullpath./dc19at&j..R &fullpath.dc19at&j..out ; [SAS ] %sysexec sleep 3 ; <looping through jobs in a block> If I go to the directory where the R program and the data reside and apply the same command by hand R CMD BATCH dc19at1.R dc19at1.out it works with no problem. But if I use a...
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
Add support for scandir() and alphasort() as defined in POSIX.1-2008. Signed-off-by: Mike Waychison <mikew at google.com> --- usr/include/dirent.h | 7 +++++ usr/klibc/Kbuild | 2 + usr/klibc/scandir.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletions(-) create mode 100644 usr/klibc/scandir.c diff --git
2005 Jun 06
0
netboot arbitrary linux systems
...non-statically linked executable I put in the image is getting an "Illegal instruction" error. I've attached the script which is generating the initrd. This is the bit that's copying in the non-static binaries: --- for file in ls ifconfig mount modprobe lsmod insmod ; do fullpath=`which $file` cp $fullpath $MINIROOT/bin for lib in `ldd $fullpath | awk '{print $3}'`; do cp $lib $MINIROOT/lib done done --- Does anyone know what could be causing an "Illegal instruction" error for non-static binaries running from an initrd image? Mor...
2001 Nov 22
1
Getting Registry info and using it ????
...ariable path read from the registry and not the specific path..This is the way I am doing it.. **************************************************************************** **************************** LPCTSTR lpSubKey = (LPCTSTR)"SOFTWARE\\Classes\\FirewallApplication"; HKEY hKey; char szFullPath[200]; DWORD dwBufLen; //const unsigned short * temp; PCWSTR temp; HRESULT hRes; RegOpenKeyEx(HKEY_LOCAL_MACHINE, (LPCTSTR)lpSubKey, 0, KEY_QUERY_VALUE, &hKey ); /*the value of szFullPath is the correct value it shows while debugging*/ RegQueryValueEx(hKey, (L...