diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
commit | b6af1e02efe594039707cd882517663d5370f375 (patch) | |
tree | ff9c2d55873e051e82972ba64c017352d3a75d34 /testing/xnbd/fix-cblocksize.patch | |
parent | a71346b7acebc600960a98c84fb32cfd72fe864b (diff) | |
download | aports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2 aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz |
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been
updated for atleast 6 months. If you are affected by this commit please follow
this proceddure:
* make sure your packages build on all architectures
* move your pacakge(s) back to testing
* if you want to keep this package and can maintain it (or find somebody to
maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'testing/xnbd/fix-cblocksize.patch')
-rw-r--r-- | testing/xnbd/fix-cblocksize.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/testing/xnbd/fix-cblocksize.patch b/testing/xnbd/fix-cblocksize.patch deleted file mode 100644 index c678204a1b..0000000000 --- a/testing/xnbd/fix-cblocksize.patch +++ /dev/null @@ -1,42 +0,0 @@ -# HG changeset patch -# User hirofuchi -# Date 1393586078 -32400 -# Node ID 34a08647f2e40d22960d8cb1de718a4391c15f3b -# Parent 93c3b58d3df2ea3f361779dad61240e9381f0bf4 -make the requirement of CBLOCKSIZE clear - -CBLOCKSIZE must be a power of 2. 1024 or 8192 should be possible, which is not equal to PAGESIZE. - -diff --git a/xnbd_common.c b/trunk/xnbd_common.c ---- a/xnbd_common.c -+++ b/xnbd_common.c -@@ -25,6 +25,13 @@ - #include "xnbd_common.h" - - -+/* -+ * CBLOCKSIZE must be a power of 2, because bit operations are used in -+ * mmap_block_region functions. There is an assertion to check this in main() -+ * of xnbd-server. -+ * -+ * 1024 or 8192, which is different from the page size, is also possible, but not well tested. -+ **/ - const unsigned int CBLOCKSIZE = 4096; - unsigned int PAGESIZE = 4096; - -diff --git a/xnbd_server.c b/trunk/xnbd_server.c ---- a/xnbd_server.c -+++ b/xnbd_server.c -@@ -1060,10 +1060,9 @@ - xnbd_initialize(&xnbd); - - -+ /* must be a power of 2 */ -+ g_assert((CBLOCKSIZE & (CBLOCKSIZE - 1)) == 0); - -- PAGESIZE = (unsigned int) getpagesize(); -- if (CBLOCKSIZE % PAGESIZE != 0) -- warn("CBLOCKSIZE %u PAGESIZE %u", CBLOCKSIZE, PAGESIZE); - - if (xnbd.cmd == xnbd_cmd_proxy) - cachestat_initialize(DEFAULT_CACHESTAT_PATH, xnbd.nblocks); |