search for: all_files

Displaying 17 results from an estimated 17 matches for "all_files".

2014 Apr 28
2
Re: [supermin] Be smarter about finding suitable kernel images
* Richard W.M. Jones: > On Sat, Apr 26, 2014 at 02:27:07PM +0200, Hilko Bengen wrote: >> --- >> src/kernel.ml | 43 ++++++++++++++++++++++++++++--------------- >> 1 file changed, 28 insertions(+), 15 deletions(-) >> >> diff --git a/src/kernel.ml b/src/kernel.ml >> index ed5aea3..436b1b0 100644 >> --- a/src/kernel.ml >> +++ b/src/kernel.ml
2014 Apr 26
2
[supermin] Be smarter about finding suitable kernel images
...host_cpu.[3] = '6' in let is_arm = String.length host_cpu >= 3 && host_cpu.[0] = 'a' && host_cpu.[1] = 'r' && host_cpu.[2] = 'm' in @@ -70,18 +80,16 @@ and find_kernel debug host_cpu copy_kernel kernel = let all_files = Array.to_list all_files in (* In original: ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen *) - let patt = - if is_x86 then "vmlinuz-*.i?86*" - else "vmlinuz-*." ^ host_cpu ^ "*" in - let files = kernel_filter patt is_arm...
2016 Nov 21
2
[PATCH 1/2] kernel: refactor build_kernel & find_kernel
..._name, kernel_version, modpath with Not_found -> - let is_arm = - String.length host_cpu >= 3 && - host_cpu.[0] = 'a' && host_cpu.[1] = 'r' && host_cpu.[2] = 'm' in + find_kernel debug host_cpu kernel in - let all_files = Sys.readdir "/boot" in - let all_files = Array.to_list all_files in + (* If the user passed --dtb option, locate dtb. *) + (match dtb_wildcard with + | None -> () + | Some wildcard -> + find_dtb debug copy_kernel kernel_name wildcard dtb + ); - (* In original:...
2014 Apr 30
2
Problem with Renaming R object
Hi, I have a problem in renaming R object and saving them within a loop. For ex: for (i in 1:length(all_files)) { uncov_GR <- "variable created in loop" filename <- paste0(sample_name[[i]],"_uncov", ".Rdata")) save(uncov_GR,file=filename) } Within the above short code (out of a long program), I want to change the name...
2014 Jun 03
2
Re: libguestfs supermin error
Hi Rich But there is no src/kernel.ml file on my ubuntu powerpc to which the above patch is reffering. I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package. Thanks On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote: > On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote: > > supermin: failed to find a suitable kernel
2014 Jun 04
2
Re: libguestfs supermin error
...; kernel_env, kernel_name, kernel_version > with Not_found -> > let is_powerpc = > String.length host_cpu >= 3 && > host_cpu.[0] = 'a' && host_cpu.[1] = 'r' && host_cpu.[2] = 'm' in > > let all_files = Sys.readdir "/boot" in > let all_files = Array.to_list all_files in > > (* In original: ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep > -v xen *) > let patterns = patt_of_cpu host_cpu in > let files = kernel_filter patterns is_powerpc al...
2011 Nov 12
2
dev.new() within a loop
...iles that match the given pattern #basedir <- "/Users/bravegag/code/asl11/data/2k-r1-test-20111111_data/" basedir <- "/Users/bravegag/code/asl11/data/nclients_2_128-20111110_data/" pattern <- paste("logs.*cl\\-.*mw\\-.*db\\-.*\\-client\\.dat",sep="") all_files <- dir(path=basedir, pattern=pattern) throughput <- NULL response <- NULL #file_name <- all_files[1] # iterate all files for (file_name in all_files) { print(paste("processing", file_name, "...")) df <- read.table(paste(basedir, file_name, sep=""))...
2017 Aug 03
14
[PATCH supermin 0/9] kernel: Multiple fixes to handling of kernels (RHBZ#1477758).
This patch series fixes several problems in the way that supermin handles kernels. The most pressing problem is that supermin doesn't handle bogus vmlinuz files which aren't actual kernels. Along the way there is a lot of clean up. The patches look much better if you view them with ‘-w’. This series will require plenty of time to be tested in Fedora, especially on non-x86 arches.
2009 Sep 21
2
Error in make.names when trying to read.table in if statement
Hi, I'm trying to read data from a collection of CSV files for processing and graphing. All of my files begin with "modrate" and end with ".csv". I think I have the regex working but I am stumped at trying to get read.table to work within an if statement. This works: > filepattern="modrate*" > files <- list.files(pattern=filepattern) > data
2010 Feb 01
2
Loading data from folder
Hi, I am trying to load csv type data from a folder. However, rather than syntax that simply loads one file at a time I was wondering if there is a method that loads all data from a specific folder. For instance, I have the following data files in a folder nebraskaStats: 10-1-2009_10-7-2009.txt 10-2-2009_10-8-2009.txt 10-3-2009_10-9-2009.txt ....etc. (245 total files in folder) Each file
2008 Dec 15
2
How to fetch specific part from a number of Text files?
Hi all, I my c: drive I have possibly 1,000 notepad files, with .txt extension. They are named as the dates on which they were saved i.e. 1st file name is "Volume_4-18-2008", 2nd one is "Volume_4-21-2008", 3rd one "Volume_4-22-2008" and so on............ Also, content of each file are in same format like : ******** content of 1st file ************* section : 1
2014 Jul 06
0
request for "minor" fix to src/library/tools/QC.r
...tools/R/QC.r 2014-03-25 01:15:06.000000000 +0200 +++ src/library/tools/R/mod-QC.r 2014-07-06 14:05:46.000000000 +0300 @@ -4372,6 +4372,9 @@ full.names = FALSE, OS_subdirs = OS_subdirs) wrong <- setdiff(all_files, man_files) + ## now configure might generate files in this directory + generated <- grep("\\.in$", wrong) + if(length(generated)) wrong <- wrong[-generated] if(length(wrong)) { wrong_things$man <- wrong if(doDelete) unlink(...
2016 Dec 07
5
[PATCH 0/3] Miscellaneous improvements to supermin.
Document what each module does, using *.mli files. Remove the --dtb option, it's obsolete. Rename modules according to their purpose. Rich.
2013 Sep 06
2
[PATCH supermin 0/2] helper: Implement device trees.
This two-part patch for supermin implements device trees (for ARM). The first patch introduces a more rational way to handle command line arguments in 'supermin-helper'. See the commit message for details. The old style is still supported for compatibility. The second patch adds an extra supermin-helper --dtb parameter specifying a wildcard. A device tree file which matches the
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
..._dir)) - goto no_dtb_dir; - - if (verbose) - fprintf (stderr, "looking for dtb matching %s in %s\n", - dtb_wildcard, dtb_dir); - - /* Look for the wildcard match. - * XXX Should probably do some sorting here and/or worry if there - * are multiple matches. - */ - char **all_files = read_dir (dtb_dir); - char **candidates = filter_fnmatch (all_files, dtb_wildcard, FNM_NOESCAPE); - - if (candidates[0] == NULL) { - fprintf (stderr, - "supermin-helper: failed to find a matching device tree.\n" - "I looked for a file matching '%s...
2016 Feb 18
0
[PATCH 3/3] Add and use an helper error function
...; error "dpkg: expecting %s to return some output" cmd | arch :: _ -> dpkg_primary_arch := arch type dpkg_t = { diff --git a/src/kernel.ml b/src/kernel.ml index 046cde9..356ac4b 100644 --- a/src/kernel.ml +++ b/src/kernel.ml @@ -128,16 +128,15 @@ and kernel_filter patterns is_arm all_files = List.filter (fun filename -> has_modpath filename) files and no_kernels host_cpu = - eprintf "\ -supermin: failed to find a suitable kernel (host_cpu=%s). + error "\ +failed to find a suitable kernel (host_cpu=%s). I looked for kernels in /boot and modules in /lib/modules....
2016 Feb 18
4
[PATCH 0/3] supermin: miscellaneous cleanups
Hi, few cleanups in the supermin codebase; no actual functional change. Thanks, -- Pino Toscano (3): ext2: simplify tracking of visited modules utils: remove unused run_python function Add and use an helper error function src/build.ml | 20 +++++----------- src/dpkg.ml | 4 +--- src/ext2_initrd.ml | 10 ++++---- src/kernel.ml | 27