search for: size_only

Displaying 20 results from an estimated 33 matches for "size_only".

2020 Sep 26
1
[PATCH nbdinfo proposal] info: Add a --map option for displaying allocation metadata
This is a rough-and-ready implementation of nbdinfo --map option, to display the allocation and other metadata of NBD exports. I only tested it lightly against nbdkit. It needs at least some tests. Command like these should work: nbdinfo --map nbd://localhost nbdinfo --map=qemu:dirty-bitmap nbd://localhost Rich.
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...ed_files(int itemizing, enum logcode code, int check_redo) min_size = -1; ignore_existing = -ignore_existing; ignore_non_existing = -ignore_non_existing; + ignore_non_existing_dirs = -ignore_non_existing_dirs; update_only = -update_only; always_checksum = -always_checksum; size_only = -size_only; @@ -2134,6 +2142,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo) min_size = save_min_size; ignore_existing = -ignore_existing; ignore_non_existing = -ignore_non_existing; + ignore_non_existing_dirs = -ignore_non_existing_dirs; upd...
2020 Sep 26
0
[PATCH nbdinfo v2] info: Add a --map option for displaying allocation metadata.
...--git a/info/nbdinfo.c b/info/nbdinfo.c index 647a24c..ff060aa 100644 --- a/info/nbdinfo.c +++ b/info/nbdinfo.c @@ -34,6 +34,7 @@ static bool list_all = false; static bool probe_content, content_flag, no_content_flag; static bool json_output = false; +static const char *map = NULL; static bool size_only = false; static struct export_list { @@ -49,6 +50,10 @@ static void list_one_export (struct nbd_handle *nbd, const char *desc, static void list_all_exports (struct nbd_handle *nbd1, const char *uri); static void print_json_string (const char *); static char *get_content (struct nbd_handle *,...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...ed_files(int itemizing, enum logcode code, int check_redo) min_size = -1; ignore_existing = -ignore_existing; ignore_non_existing = -ignore_non_existing; + ignore_non_existing_dirs = -ignore_non_existing_dirs; update_only = -update_only; always_checksum = -always_checksum; size_only = -size_only; @@ -2134,6 +2142,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo) min_size = save_min_size; ignore_existing = -ignore_existing; ignore_non_existing = -ignore_non_existing; + ignore_non_existing_dirs = -ignore_non_existing_dirs; upd...
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...ed_files(int itemizing, enum logcode code, int check_redo) min_size = -1; ignore_existing = -ignore_existing; ignore_non_existing = -ignore_non_existing; + ignore_non_existing_dirs = -ignore_non_existing_dirs; update_only = -update_only; always_checksum = -always_checksum; size_only = -size_only; @@ -2134,6 +2142,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo) min_size = save_min_size; ignore_existing = -ignore_existing; ignore_non_existing = -ignore_non_existing; + ignore_non_existing_dirs = -ignore_non_existing_dirs; upd...
2020 Sep 26
2
[PATCH nbdinfo v2] info: Add a --map option for displaying allocation metadata.
Fixes bugs with JSON output in the previous patch, and adds some tests. Rich.
2020 Aug 03
0
[libnbd PATCH 4/4] info: Permit --size --json
...hanged, 5 deletions(-) diff --git a/info/nbdinfo.c b/info/nbdinfo.c index f37ffea..2e0bf27 100644 --- a/info/nbdinfo.c +++ b/info/nbdinfo.c @@ -158,11 +158,6 @@ main (int argc, char *argv[]) usage (stderr, EXIT_FAILURE); /* You can combine certain options. */ - if (json_output && size_only) { - fprintf (stderr, "%s: you cannot use %s and %s together.\n", - argv[0], "--json", "--size"); - exit (EXIT_FAILURE); - } if (list_all && size_only) { fprintf (stderr, "%s: you cannot use %s and %s together.\n",...
2020 Oct 02
0
[libnbd PATCH v2 2/2] info: List available meta-contexts
...ze: $((1024*1024))" $out +sed -n '/contexts:/ { N; p; q }; $ q1' $out + diff --git a/info/nbdinfo.c b/info/nbdinfo.c index 6f5d191..5358f82 100644 --- a/info/nbdinfo.c +++ b/info/nbdinfo.c @@ -37,12 +37,18 @@ static bool json_output = false; static const char *map = NULL; static bool size_only = false; +struct context_list { + char *name; + struct context_list *next; +}; + static struct export_list { size_t len; char **names; char **descs; } export_list; +static int collect_context (void *opaque, const char *name); static int collect_export (void *opaque, const char *name...
2023 Jun 12
3
[PATCH libnbd 0/2] Two simple patches
These patches aren't related to each other, but both are quite simple. The second one requires particular attention - it's my experience that printing out the state transitions in debug mode has never helped me to diagnose a bug, but it has made the debug logs huge and hard to follow. However that might just be me! Has it helped anyone else? Also I'm open to the concept of debug
2020 Aug 03
5
[libnbd PATCH 0/4] More nbdinfo fixes
This rounds up the remaining bugs that I originally identified in: https://www.redhat.com/archives/libguestfs/2020-July/msg00153.html Eric Blake (4): api: Permit export list APIs when Connected info: Support --list with serializing servers info: Fix --json output when list size != 1 info: Permit --size --json generator/API.ml | 6 +++--- info/info-list-json.sh | 9 +++++++++
2003 Nov 17
0
[PATCH] --source-filter && --dest-filter for rsync 2.5.6
...rsync-2.5.6-filtered/generator.c --- rsync-2.5.6/generator.c 2002-08-29 16:44:55.000000000 +0200 +++ rsync-2.5.6-filtered/generator.c 2003-11-16 13:57:54.000000000 +0100 @@ -35,6 +35,7 @@ extern int block_size; extern int csum_length; extern int ignore_times; +extern int times_only; extern int size_only; extern int io_timeout; extern int remote_version; @@ -48,8 +49,10 @@ static int skip_file(char *fname, struct file_struct *file, STRUCT_STAT *st) { - if (st->st_size != file->length) { - return 0; + if (! times_only) { + if (st->st_size != file->length) { + return 0; +...
2005 Apr 25
2
How about a --min-size option, next to --max-size
There's a rather old bug report in Debian's bug tracking system (see http://bugs.debian.org/27126) about wanting to be able to specify the maximum file size, as well as the minimum file size. Here's the text: Sometimes, it's useful to specify a file size range one is interested in. For example, I'd like to keep an up-to-date mirror of Debian, but I currently
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
...ENGTH 2 +#define BLOCKSUM_BIAS 10 #ifndef MAXPATHLEN #define MAXPATHLEN 1024 --- options.c Sat Mar 29 12:25:34 2003 +++ options.c Sat Mar 29 15:10:42 2003 @@ -72,7 +72,7 @@ int keep_partial=0; int safe_symlinks=0; int copy_unsafe_links=0; -int block_size=BLOCK_SIZE; +int block_size=0; int size_only=0; int bwlimit=0; int delete_after=0; @@ -725,7 +725,7 @@ if (x != 1) args[ac++] = argstr; - if (block_size != BLOCK_SIZE) { + if (block_size) { snprintf(bsize,sizeof(bsize),"-B%d",block_size); args[ac++] = bsize; } --- generator.c Sat Mar 29 12:24:49 2003 +++ generator.c...
2020 Jul 29
0
[libnbd PATCH 2/2] info: Expose description in list mode
...: world' $out grep 'export-size: 1048576' $out diff --git a/info/nbdinfo.c b/info/nbdinfo.c index 49c97be..1aca548 100644 --- a/info/nbdinfo.c +++ b/info/nbdinfo.c @@ -37,7 +37,7 @@ static bool probe_content, content_flag, no_content_flag; static bool json_output = false; static bool size_only = false; -static void list_one_export (struct nbd_handle *nbd); +static void list_one_export (struct nbd_handle *nbd, const char *desc); static void list_all_exports (struct nbd_handle *nbd1, const char *uri); static void print_json_string (const char *); static char *get_content (struct nbd_ha...
2020 Aug 19
0
[libnbd PATCH 2/2] info: Use nbd_opt_info for fewer handles during --list
.... - */ - nbd_opt_abort (nbd); + if (probe_content) + /* Disconnect from the server to move the handle into a closed + * state, in case the server serializes further connections. + * But we can ignore errors in this case. + */ + nbd_opt_abort (nbd); } if (size_only) { @@ -456,9 +457,6 @@ list_one_export (struct nbd_handle *nbd, const char *desc, free (export_name); } -/* XXX Inefficient and hacky. See TODO for a suggestion on how to - * improve this. - */ static void list_all_exports (struct nbd_handle *nbd1, const char *uri) { @@ -468,31 +466,41 @@...
2004 Oct 05
0
new option implemented: --delete-mdays
...if (delete_after) args[ac++] = "--delete-after"; if (force_delete) args[ac++] = "--force"; - - if (delete_mdays!=-1){ - if (asprintf(&arg, "--delete-mdays=%d", delete_mdays) < 0) - goto oom; - args[ac++] = arg; - } } if (size_only) args[ac++] = "--size-only"; --- 1027,1036 ---- *** receiver.c Tue Oct 5 15:53:39 2004 --- /tmp/rsync-2.6.3/receiver.c Tue Sep 21 11:24:06 2004 *************** *** 22,32 **** extern int verbose; extern int recurse; extern int delete_after; extern int max_delete; - exter...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...ve been modified after generating the exclude file, so rsync would still transfer it even though that wasn't what was wanted. diff --git a/generator.c b/generator.c index 110db28f..22f0973f 100644 --- a/generator.c +++ b/generator.c @@ -70,6 +70,8 @@ extern int ignore_times; extern int size_only; extern OFF_T max_size; extern OFF_T min_size; +extern int max_age; +extern int min_age; extern int io_error; extern int flist_eof; extern int allowed_lull; @@ -1706,6 +1708,23 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, goto cleanup; } + if (max...
2003 Sep 23
0
[PATCH] tdb multiple format
...logon_time, logoff_time, kickoff_time, @@ -1630,7 +1674,9 @@ pdb_get_hours_len(sampass), MAX_HOURS_LEN, pdb_get_hours(sampass), pdb_get_unknown_5(sampass), - pdb_get_unknown_6(sampass)); + pdb_get_unknown_6(sampass), + lockout_time, + pdb_get_bad_pwd_count(sampass)); if (size_only) @@ -1643,7 +1689,7 @@ } /* now for the real call to tdb_pack() */ - buflen = tdb_pack((char *)*buf, len, TDB_FORMAT_STRING, + buflen = tdb_pack((char *)*buf, len, TDB_FORMAT_STRING[TDB_FORMAT_NEWEST_VERSION], logon_time, logoff_time, kickoff_time, @@ -1672,7 +1718,9 @@ pdb_get...
2003 Mar 23
1
[RFC] dynamic checksum size
...HLEN 1024 --- generator.c Sat Mar 22 09:47:43 2003 +++ generator.c.varsumlen Sat Mar 22 10:41:12 2003 @@ -32,7 +32,6 @@ extern int preserve_hard_links; extern int update_only; extern int opt_ignore_existing; -extern int block_size; extern int csum_length; extern int ignore_times; extern int size_only; @@ -93,20 +92,6 @@ } -/* use a larger block size for really big files */ -static int adapt_block_size(struct file_struct *file, int bsize) -{ - int ret; - - if (bsize != BLOCK_SIZE) return bsize; - - ret = file->length / (10000); /* rough heuristic */ - ret = ret & ~15; /* multiple of...
2004 Apr 19
3
[PATCH] time limit
...} + total += ret; diff -urN rsync-2.6.1pre-2/options.c rsync-2.6.1pre-2_modified/options.c --- rsync-2.6.1pre-2/options.c 2004-04-17 13:07:23.000000000 -0400 +++ rsync-2.6.1pre-2_modified/options.c 2004-04-19 16:07:57.000000000 -0400 @@ -83,6 +83,7 @@ int copy_unsafe_links = 0; int size_only = 0; int bwlimit = 0; +int timelimit = 0; int delete_after = 0; int only_existing = 0; int opt_ignore_existing = 0; @@ -288,6 +289,7 @@ rprintf(F," --log-format=FORMAT log file transfers using specified format\n"); rprintf(F," --password-file=FILE get passwor...