search for: full_path

Displaying 20 results from an estimated 40 matches for "full_path".

2013 Apr 06
3
btrfs-progs: re-add send-test
..."snapshot\t%s\t%llu\t%s\t%llu\t%s\n", uuid_str, + (unsigned long long)ctransid, parent_uuid_str, + (unsigned long long)parent_ctransid, r->full_subvol_path); + + return 0; +} + +static int print_mkfile(const char *path, void *user) +{ + struct recv_args *r = user; + char *full_path = path_cat(r->full_subvol_path, path); + + printf("mkfile\t%s\n", full_path); + + free(full_path); + return 0; +} + +static int print_mkdir(const char *path, void *user) +{ + struct recv_args *r = user; + char *full_path = path_cat(r->full_subvol_path, path); + + printf("mkdir\...
2008 Jun 24
10
Question on passing arguments inside a view.
...and getting the above error. Example: two tables one is editorial the other fp_directory Editorial Model def self.date_range(from,to) find(:all, :conditions => {:expiration_date => from..to }, :order => ''expiration_date DESC'') end Directory Model def self.full_path(directoryid) find(:all, :conditions => { :j15c_directory_id => "#{directory_id}" }) end I have a view that displays my form and submits output to display controller all works until I add in one more piece. Editorial Controller def display @get_path = Directory.full_path(d...
2013 Apr 09
19
[PATCH 00/17] Btrfs-progs: some receive related patches
Most fixes are trivial. The one from Alex is fixing a real bug that several users have reported. Alex sent the patch half a year ago and it was not yet integrated. The patch "Use /proc/mounts instead of /etc/mtab" is a repost. The patch "btrfs-receive optionally honors the end-cmd" is a preparation step to allow backup tools to multiplex a single communication stream (e.g. a
2011 Jul 07
5
[PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical"
The kernel patch series just sent (Subject: "Btrfs: scrub: print path to corrupted files and trigger nodatasum fixup") introduces two new ioctls to do in-kernel filesystem path construction. This series provides the corresponding userspace changes, adding two new commands to the btrfs utility: -- btrfs resolve inode [-v] <inode> <path> resolves an <inode> to all
2006 Mar 17
10
breadcrumbs?
Before I start down this road, has anyone done a breadcrumbs implementation they''d be happy to share? Thanks Chris T
2011 May 24
0
Rails 3.0.7 ActionMailer attachments
...forward_email(email_id, from_address, to_address) @email = Email.find(email_id) @recipients = to_address @from = from_address @subject = @email.subject @sent_on = Time.now @body = @email.body + "\n\n" @email.attachments.each do |file| if File.exist?(file.full_path) attachment :filename => file.file_name, :content => File.read(file.full_path), :content_type => "application/octet-stream" else @body += "ATTACHMENT NOT FOUND: #{file.file_name}\n\n" end...
2014 Sep 15
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
Good tips. Although I have used llvm-link to merge .bc files together, I guess -flto could optimize the resultant .bc file further. As for the assembly, yes it is an issue. Anyway, I'll try to address those sources which are available for being translated into .bc first. Thanks for your advice, Tim. On Mon, Sep 15, 2014 at 2:55 PM, Tim Northover <t.p.northover at gmail.com> wrote:
2013 Dec 17
9
[PATCH] Btrfs-progs: receive: fix the case that we can not find subvolume
...napshot(const char *path, const u8 *uuid, u64 ctransid, char uuid_str[BTRFS_UUID_UNPARSED_SIZE]; struct btrfs_ioctl_vol_args_v2 args_v2; struct subvol_info *parent_subvol = NULL; + char *dev = NULL; + char tmp_name[15] = "btrfs-XXXXXX"; + char tmp_dir[30] = "/tmp"; + char *full_path = NULL; ret = finish_subvol(r); if (ret < 0) @@ -253,13 +258,47 @@ static int process_snapshot(const char *path, const u8 *uuid, u64 ctransid, } }*/ - args_v2.fd = openat(r->mnt_fd, parent_subvol->path, - O_RDONLY | O_NOATIME); + ret = mnt_to_dev(r->root_path, &dev);...
2010 Jun 05
0
PULL: Properly cast and avoid compiler warnings, fixes build on alpha and ia64.
...100644 - --- a/btrfs-list.c +++ b/btrfs-list.c @@ -248,8 +248,9 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri) break; } } - - printf("ID %llu top level %llu path %s\n", ri->root_id, top_id, - - full_path); + printf("ID %llu top level %llu path %s\n", + (long long unsigned int) ri->root_id, + (long long unsigned int) top_id, full_path); free(full_path); return 0; } diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index a109c6a..14...
2014 Oct 13
0
[PATCH] cat, diff: avoid double slashes in paths (RHBZ#1151910).
In full_path, skip the trailing slash in the base directory when different than "/", as the slash will eventually be added when building the resulting path. --- cat/visit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cat/visit.c b/cat/visit.c index 963beb8..49b779e 10...
2011 Aug 17
1
A question about using getSrcDirectory() with R/Rscript
...ipt. If I understand the documentation correctly, the following example should work: In file test.R: options(keep.source=T) fn<-function(x){x<-x+1} srcDir<-getSrcDirectory(fn) print(srcDir) I attempted the following invocations of Rscript: + Rscript test.R + Rscript <full_path>/test.R I attempted the following invocations using R: + source("test.R") + Manually entering the function In both attempts, the variable srcDir is a zero-length character vector. Digging into the documentation, I notice that getSrcDirectory() looks for a "srcref" att...
2010 Feb 12
2
How to source files from a search path?
Suppose some environment variable (say MY_R_INC) has a number of paths. I want to source some file relative to some path in $MY_R_INC (just as #include in C++ does, which looks for header file in a number of directories). I RSiteSearch'ed, but I don't find any function that satisfies my need. Could somebody let me know if I overlooked something?
2013 Oct 23
0
[PATCH] btrfs-progs: add filter for deleted but uncleanded subvolumes
...s_list_filter_func all_filter_funcs[] = { [BTRFS_LIST_FILTER_ROOTID] = filter_by_rootid, [BTRFS_LIST_FILTER_SNAPSHOT_ONLY] = filter_snapshot, @@ -1186,6 +1191,7 @@ static btrfs_list_filter_func all_filter_funcs[] = { [BTRFS_LIST_FILTER_TOPID_EQUAL] = filter_topid_equal, [BTRFS_LIST_FILTER_FULL_PATH] = filter_full_path, [BTRFS_LIST_FILTER_BY_PARENT] = filter_by_parent, + [BTRFS_LIST_FILTER_DELETED] = filter_deleted, }; struct btrfs_list_filter_set *btrfs_list_alloc_filter_set(void) @@ -1222,6 +1228,11 @@ int btrfs_list_setup_filter(struct btrfs_list_filter_set **filter_set, BUG_ON(f...
2012 Jul 26
2
ruby bindings, ruby 1.9.3 and xapian
Hello, I've problem with xapian or sth. Ubuntu 8.04, ruby 1.9.3 with rvm, when Im trying to initialize database, Im getting this error: irb > require 'xapian' ==> true irb > database = Xapian::WritableDatabase.new('/full_path/db/xapian_db/development', Xapian::DB_CREATE_OR_OPEN) ArgumentError: Wrong arguments for overloaded method 'WritableDatabase.new'. Possible C/C++ prototypes are: WritableDatabase.new() WritableDatabase.new(std::string const &path, int action) WritableDatabase.new(Xapian:...
2011 Apr 07
0
[PATCH] btrfs-progs: cast u64 to long long to avoid printf warnings
...int resolve_root(struct root_lookup *rl, struct root_info *ri) break; } } - printf("ID %llu top level %llu path %s\n", ri->root_id, top_id, + printf("ID %llu top level %llu path %s\n", + (unsigned long long)ri->root_id, (unsigned long long)top_id, full_path); free(full_path); return 0; diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index a109c6a..9e9806d 100644 --- a/btrfs-map-logical.c +++ b/btrfs-map-logical.c @@ -65,8 +65,8 @@ struct extent_buffer *debug_read_block(struct btrfs_root *root, u64 bytenr, eb->dev_bytenr = multi->st...
2016 Dec 14
1
Re: [PATCH v2 3/4] sysprep: Add a new operation to remove editor backup files (RHBZ#1401320).
...? let suffixes = [ ".bak"; "~" ] in ... if List.exists (String.is_suffix filename) suffixes then ( ... This would be easier to extend also for filename prefixes, in case we need them, so for now the fnmatch usage can be avoided. > + let path = full_path dir (Some filename) in > + g#rm_f path > + ) > + ) > + ) > + ) fses > + > +let op = { > + defaults with > + name = "backup-files"; > + enabled_by_default = true; > + heading = s_"Remove editor backu...
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
2016 Dec 14
6
[PATCH v2 0/4] sysprep: Remove various backup files.
In v2: - The backup-files operation now operates on a conservative whitelist of filesystems, so it won't touch anything in /usr. Consequently it also runs much more quickly, about 4 seconds on the barebones virt-builder fedora-25 image. - Call Gc.compact () in visit_tests. - Added documentation to fnmatch.mli.
2005 Jul 18
2
RSync and SSH problems
Hey all, First off, I'm new to cygwin, rsync, and actually even ssh. I've used ssh clients many times, but server side I'm a bit of a noob. Anyway, here's my problem... I set up a brand spankin new Windows XP box with only two apps installed: copSSH and rsync. I need to tie down all security as tight as possible. From what I've seen/read, it seems to me the only port I need
2007 Nov 18
14
css image url''s and :img problem
Hi, i have this controller class to serve static files. It works well for the stylesheet file under a /static directory, locating it, but the images referenced in the stylesheet do not appear. They are in the same /static folder, next to the stylesheet.css file. link :rel => ''stylesheet'', :href => R(Static, ''stylesheet.css''), :type =>