Hello community,

here is the log from the commit of package clicfs for openSUSE:12.2 checked in 
at 2012-07-12 14:39:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2/clicfs (Old)
 and      /work/SRC/openSUSE:12.2/.clicfs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "clicfs", Maintainer is "co...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:12.2/clicfs/clicfs.changes       2012-06-25 
15:16:51.000000000 +0200
+++ /work/SRC/openSUSE:12.2/.clicfs.new/clicfs.changes  2012-07-12 
14:39:49.000000000 +0200
@@ -1,0 +2,12 @@
+Wed Jul 11 09:31:21 UTC 2012 - co...@suse.com
+
+- update to 1.4.6
+  - mkclicfs adds padding to 4096 now (bnc#733021)
+
+-------------------------------------------------------------------
+Tue Jul 10 20:03:43 UTC 2012 - co...@suse.com
+
+- update to 1.4.5
+  - sparse_memory is 64bit now (bnc#754468)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ clicfs.spec ++++++
--- /var/tmp/diff_new_pack.HCPHXZ/_old  2012-07-12 14:39:49.000000000 +0200
+++ /var/tmp/diff_new_pack.HCPHXZ/_new  2012-07-12 14:39:49.000000000 +0200
@@ -15,8 +15,9 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           clicfs
-Version:        1.4.4
+Version:        1.4.6
 Release:        0
 Summary:        Compressed Loop Image Container
 License:        GPL-2.0

++++++ clicfs.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/src/clicfs.c new/src/clicfs.c
--- old/src/clicfs.c    2012-02-09 15:04:54.000000000 +0100
+++ new/src/clicfs.c    2012-07-11 11:29:51.000000000 +0200
@@ -38,8 +38,8 @@
 
 FILE *logger = 0;
 
-static size_t detached_allocated = 0;
-static size_t sparse_memory = 0;
+static uint64_t detached_allocated = 0;
+static uint64_t sparse_memory = 0;
 static char *cowfilename = 0;
 static off_t memory_used = 0;
 static long last_sync = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/src/mkclicfs.cpp new/src/mkclicfs.cpp
--- old/src/mkclicfs.cpp        2012-02-09 15:04:54.000000000 +0100
+++ new/src/mkclicfs.cpp        2012-07-11 11:29:51.000000000 +0200
@@ -624,6 +624,16 @@
         }
     }
     // the remaining array parts (oparts-parts) stay sparse
+    
+    // now add some padding (bnc#733021)
+    fseeko(out, 0, SEEK_END);
+    off_t filesize = ftello(out);
+    off_t paddedfilesize = (filesize / 4096) * 4096;
+    if (filesize != paddedfilesize) {
+        char buffer[4096];
+        memset(buffer, 0, 4096);
+        fwrite(buffer, paddedfilesize + 4096 - filesize, 1, out);
+    }
 
     fclose(out);
     close( infd );

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to