search for: compressed_size

Displaying 20 results from an estimated 87 matches for "compressed_size".

2010 Jul 26
6
[PATCH] Btrfs: compressed file size ioctl
...f its extents. + */ + struct inode *inode = fdentry(file)->d_inode; + struct btrfs_root *root = BTRFS_I(inode)->root; + struct btrfs_path *path; + struct extent_buffer *leaf; + struct btrfs_key key; + u32 nritems; + int slot; + u64 olen = inode->i_size; + u64 len = olen; + long ret; + u64 compressed_size = 0; + + if (S_ISDIR(inode->i_mode)) + return -EISDIR; + + path = btrfs_alloc_path(); + if (!path) + return -ENOMEM; + + path->reada = 2; + mutex_lock(&inode->i_mutex); + + /* do any pending delalloc/csum calc on inode, one way or + another, and lock file content */ + btrfs_wait_o...
2015 Jul 28
0
[PATCH 06/10] builder: split Index_parser.index in an own module
...ng option; (* the name= field *) + osinfo : string option; + file_uri : string; + arch : string; + signature_uri : string option; (* deprecated, will be removed in 1.26 *) + checksums : Checksums.csum_t list option; + revision : int; + format : string option; + size : int64; + compressed_size : int64 option; + expand : string option; + lvexpand : string option; + notes : (string * string) list; + hidden : bool; + aliases : string list option; + + sigchecker : Sigchecker.t; + proxy : Downloader.proxy_mode; +} + +let print_entry chan (name, { printable_name = printable_name; +...
2014 May 26
2
[PATCH] builder: support aliases for images (RHBZ#1098718).
...pe list. *) +val list_separator : string diff --git a/builder/list_entries.ml b/builder/list_entries.ml index 505a1b9..9264cfc 100644 --- a/builder/list_entries.ml +++ b/builder/list_entries.ml @@ -65,6 +65,7 @@ and list_entries_long ~sources index = size = size; compressed_size = compressed_size; notes = notes; + aliases = aliases; hidden = hidden }) -> if not hidden then ( printf "%-24s %s\n" "os-version:" name; @@ -79,6 +80,11 @@ and list_entries_long ~sources index = | S...
2014 Feb 24
2
[PATCH] builder: add a mandatory 'arch' key in index files
...ea95e..edf7dfb 100644 --- a/builder/list_entries.ml +++ b/builder/list_entries.ml @@ -73,6 +73,7 @@ and list_entries_long ~sources index = List.iter ( fun (name, { Index_parser.printable_name = printable_name; + arch = arch; size = size; compressed_size = compressed_size; notes = notes; @@ -83,6 +84,7 @@ and list_entries_long ~sources index = | None -> () | Some name -> printf "%-24s %s\n" (s_"Full name:") name; ); + printf "%-24s %s\n" (s_"Architecture:&q...
2014 Sep 23
0
[PATCH 13/13] syntax-check: fix trailing_blank check
...multiraid :: \ # 1000 5000 4000 raid \ diff --git a/builder/website/index b/builder/website/index index 5645ddf..aea33aa 100644 --- a/builder/website/index +++ b/builder/website/index @@ -10,14 +10,14 @@ size=6442450944 compressed_size=197139324 expand=/dev/sda3 notes=CentOS 6.5 - + This CentOS image contains only unmodified @Core group packages. - + It is thus very minimal. The kickstart and install script can be found in the libguestfs source tree: - + builder/website/centos.sh - + Note that `virt-builder cento...
2017 Mar 07
0
[PATCH v4 5/9] builder: add Index_parser.write_entry function
...osinfo; + signature_uri = signature_uri; + checksums = checksums; + revision = revision; + format = format; + size = size; + compressed_size = compressed_size; + expand = expand; + lvexpand = lvexpand; + notes = notes; + aliases = aliases; + hidden = hidden }) = + let fp fs = fprintf chan fs i...
2017 Feb 07
0
[PATCH v2 5/7] builder: add Index.write_entry function
...osinfo; + signature_uri = signature_uri; + checksums = checksums; + revision = revision; + format = format; + size = size; + compressed_size = compressed_size; + expand = expand; + lvexpand = lvexpand; + notes = notes; + aliases = aliases; + hidden = hidden }) = + let fp fs = fprintf chan fs i...
2017 Feb 10
0
[PATCH v3 08/10] builder: add Index.write_entry function
...osinfo; + signature_uri = signature_uri; + checksums = checksums; + revision = revision; + format = format; + size = size; + compressed_size = compressed_size; + expand = expand; + lvexpand = lvexpand; + notes = notes; + aliases = aliases; + hidden = hidden }) = + let fp fs = fprintf chan fs i...
2017 Sep 18
0
[PATCH v9 4/7] builder: add Index.write_entry function
...osinfo; + signature_uri = signature_uri; + checksums = checksums; + revision = revision; + format = format; + size = size; + compressed_size = compressed_size; + expand = expand; + lvexpand = lvexpand; + notes = notes; + aliases = aliases; + hidden = hidden }) = + let fp fs = fprintf chan fs i...
2017 Oct 05
0
[PATCH v11 4/6] builder: add Index.write_entry function
...osinfo; + signature_uri = signature_uri; + checksums = checksums; + revision = revision; + format = format; + size = size; + compressed_size = compressed_size; + expand = expand; + lvexpand = lvexpand; + notes = notes; + aliases = aliases; + hidden = hidden }) = + let fp fs = fprintf chan fs i...
2016 Nov 28
2
[PATCH] builder: Rearrange how template-building scripts work.
...centos-6.index-fragment @@ -0,0 +1,23 @@ +[centos-6] +name=CentOS 6.6 +osinfo=centos6.6 +arch=x86_64 +file=centos-6.xz +revision=6 +checksum=fc403ea3555a5608a25ad30ce2514b67288311a7197ddf9fb664475820f26db2bd95a86be9cd6e3f772187b384a02e0965430456dd518d343a80457057bc5441 +format=raw +size=6442450944 +compressed_size=199265736 +expand=/dev/sda3 +notes=CentOS 6.6 + + This CentOS image contains only unmodified @Core group packages. + + It is thus very minimal. The kickstart and install script can be + found in the libguestfs source tree: + + builder/website/centos.sh + + Note that `virt-builder centos-6'...
2011 Feb 12
3
[PATCH] fix uncheck memory allocations
...e.c @@ -287,6 +287,7 @@ static noinline int add_async_extent(struct async_cow *cow, struct async_extent *async_extent; async_extent = kmalloc(sizeof(*async_extent), GFP_NOFS); + BUG_ON(!async_extent); async_extent->start = start; async_extent->ram_size = ram_size; async_extent->compressed_size = compressed_size; @@ -384,6 +385,7 @@ again: (BTRFS_I(inode)->force_compress))) { WARN_ON(pages); pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); + BUG_ON(!pages); if (BTRFS_I(inode)->force_compress) compress_type = BTRFS_I(inode)->force_compress; @@ -6...
2017 Oct 27
0
[PATCH v11 6/8] builder: add Index.write_entry function
...@@ let get_index ~downloader ~sigchecker ?(template = false) { Sources.uri; proxy } in get_index () + +let write_entry chan (name, { Index.printable_name; file_uri; arch; osinfo; + signature_uri; checksums; revision; format; size; + compressed_size; expand; lvexpand; notes; + aliases; hidden}) = + let fp fs = fprintf chan fs in + fp "[%s]\n" name; + Option.may (fp "name=%s\n") printable_name; + Option.may (fp "osinfo=%s\n") osinfo; + fp "file=%s\n" file_uri; + match ar...
2011 Feb 15
1
[PATCH] Btrfs: fix uncheck memory allocations
...e.c @@ -287,6 +287,7 @@ static noinline int add_async_extent(struct async_cow *cow, struct async_extent *async_extent; async_extent = kmalloc(sizeof(*async_extent), GFP_NOFS); + BUG_ON(!async_extent); async_extent->start = start; async_extent->ram_size = ram_size; async_extent->compressed_size = compressed_size; @@ -384,6 +385,7 @@ again: (BTRFS_I(inode)->force_compress))) { WARN_ON(pages); pages = kzalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); + BUG_ON(!pages); if (BTRFS_I(inode)->force_compress) compress_type = BTRFS_I(inode)->force_compress; -- 1...
2017 Jan 03
0
[PATCH 5/5] Add a virt-builder-repository tool
..._parse line in + let format = object_get_string "format" infos in + let size = object_get_number "virtual-size" infos in + + let xz_path = compress_to filepath cmdline.repo in + let checksum = Checksums.get_checksum (Checksums.SHA512 "") xz_path in + let compressed_size = (Unix.stat xz_path).Unix.st_size in + + let ask message = ( + printf (f_ message); + let value = read_line () in + match value with + | "" -> None + | s -> Some s + ) in + + let rec ask_id () = ( + printf (f_"Identifier: "); +...
2015 Jul 28
19
[PATCH 00/10] RFC: builder: first support for Simple Streams metadata
Hi, this series adds a basic support for Simple Streams v1.0 metadata files. This makes it possible to create a repository .conf files with [cirros] uri=http://download.cirros-cloud.net format=simplestreams to read the latest version of each CirrOS image. TODO items: - a bit more testing: listing and creating images works, so the current metadata is correct - handle revisions, so newer
2014 Jan 16
5
[PATCH 0/3] Add JSON output for virt-builder
Hi, This small patch serie adds a JSON output for virt-builder. This way it is possible to parse the list of available templates, with no need to parse the unstructured and possibly changing short and long outputs of virt-builder. Pino Toscano (3): builder: small refactor of the list output builder: add --list-format builder: add a JSON output for --list builder/builder.ml
2015 Nov 10
7
[PATCH 0/4]: mllib: Add 'may' function, and refactoring.
The 'may' function is a higher-order function (HOF) that replaces: match x with | None -> () | Some x -> f x with: may f x The idea comes from lablgtk (OCaml Gtk bindings) where it is widely used. If this change is clearer than previous code, then this could be used in many more places. However I previously steered clear from using HOFs like this because they can be
2014 Sep 23
27
[PATCH 00/13] syntax-check
Hi Rich, This series includes patches to make `make syntax-check` pass. Some of the fix require change to maint.mk, but the file is not in git repo. Is it intended? Thanks! Hu Tao (13): syntax-check: dirty hack to pass bindtextdomain check syntax-check: fix error_message_period check syntax-check: fix makefile_at_at_check syntax-check: fix prohibit_assert_without_use check
2014 Oct 10
0
[PATCH 3/3] builder: use the JSON module
...f -> + ("key", JSON.String kf) :: item in + JSON.Dict item + ) sources in + let json_templates = + List.map ( + fun (name, { Index_parser.printable_name = printable_name; arch = arch; size = size; compressed_size = compressed_size; notes = notes; aliases = aliases; hidden = hidden }) -> - printf " {\n"; - printf " \"os-version\": \"%s\",\n" name; - json_optional_printf_string "full-...