Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package compsize for openSUSE:Factory checked in at 2021-02-09 21:16:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/compsize (Old) and /work/SRC/openSUSE:Factory/.compsize.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "compsize" Tue Feb 9 21:16:52 2021 rev:4 rq:870328 version:1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/compsize/compsize.changes 2021-01-21 21:54:36.357775941 +0100 +++ /work/SRC/openSUSE:Factory/.compsize.new.28504/compsize.changes 2021-02-09 21:16:52.914815936 +0100 @@ -1,0 +2,6 @@ +Mon Feb 8 17:48:57 UTC 2021 - [email protected] + +- Update to version 1.5: + * Improve performances. + +------------------------------------------------------------------- Old: ---- compsize-1.4.tar.gz New: ---- compsize-1.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ compsize.spec ++++++ --- /var/tmp/diff_new_pack.0oW6iv/_old 2021-02-09 21:16:53.474816574 +0100 +++ /var/tmp/diff_new_pack.0oW6iv/_new 2021-02-09 21:16:53.482816583 +0100 @@ -17,7 +17,7 @@ Name: compsize -Version: 1.4 +Version: 1.5 Release: 0 Summary: Utility for measuring compression ratio of files on btrfs License: GPL-2.0-or-later ++++++ compsize-1.4.tar.gz -> compsize-1.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compsize-1.4/Makefile new/compsize-1.5/Makefile --- old/compsize-1.4/Makefile 2021-01-18 23:37:59.000000000 +0100 +++ new/compsize-1.5/Makefile 2021-02-08 00:05:36.000000000 +0100 @@ -21,12 +21,12 @@ $(BIN): $(OBJ_FILES) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -BIN_I := $(PREFIX)/bin/compsize +BIN_I := $(DESTDIR)$(PREFIX)/bin/compsize $(BIN_I): $(BIN) install -Dm755 $< $@ -MAN_I := $(PREFIX)/share/man/man8/compsize.8.gz +MAN_I := $(DESTDIR)$(PREFIX)/share/man/man8/compsize.8.gz $(MAN_I): $(SRC_DIR)/compsize.8 gzip -9n < $< > $@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compsize-1.4/compsize.c new/compsize-1.5/compsize.c --- old/compsize-1.4/compsize.c 2021-01-18 23:37:59.000000000 +0100 +++ new/compsize-1.5/compsize.c 2021-02-08 00:05:36.000000000 +0100 @@ -36,7 +36,7 @@ { struct btrfs_ioctl_search_key key; uint64_t buf_size; - uint8_t buf[SZ_16M]; // hardcoded kernel's limit + uint8_t buf[65536]; // hardcoded kernel's limit is 16MB }; struct workspace @@ -217,7 +217,7 @@ // In theory, we're supposed to retry until getting 0, but RTFK says // there are no short reads (just running out of buffer space), so we // avoid having to search twice. - if (sv2_args.key.nr_items > 16384) + if (sv2_args.key.nr_items > 512) { sv2_args.key.nr_items = -1; sv2_args.key.min_offset = get_u64(&head->offset) + 1; @@ -405,12 +405,10 @@ return 1; } - if (ws->nfiles > 1) - { - printf("Processed %"PRIu64" files, %"PRIu64" regular extents " - "(%"PRIu64" refs), %"PRIu64" inline.\n", - ws->nfiles, ws->nextents, ws->nrefs, ws->ninline); - } + printf("Processed %"PRIu64" file%s, %"PRIu64" regular extents " + "(%"PRIu64" refs), %"PRIu64" inline.\n", + ws->nfiles, ws->nfiles>1 ? "s" : "", + ws->nextents, ws->nrefs, ws->ninline); print_table("Type", "Perc", "Disk Usage", "Uncompressed", "Referenced"); percentage = ws->disk_all*100/ws->uncomp_all;
