2019-05-24 12:03:47 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-18 14:27:13 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-06-25 05:47:42 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-08 15:59:53 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-02 14:28:52 +02:00
|
|
|
|
2006-01-06 00:09:47 -08:00
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2006-01-06 00:09:47 -08:00
|
|
|
|
|
|
|
|
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 17:04:11 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-11-12 18:10:39 -08:00
|
|
|
|
2008-04-29 01:02:46 -07:00
|
|
|
|
2015-04-02 10:11:37 +02:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-12-24 11:46:01 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-04-26 11:49:48 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:39 -07:00
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-08-17 08:20:09 +02:00
|
|
|
|
2016-09-08 12:33:39 -07:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2015-04-02 10:11:35 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2016-12-02 16:19:12 -05:00
|
|
|
|
2015-04-02 10:11:37 +02:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-02 10:11:35 +02:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2019-08-13 11:39:52 -05:00
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-28 14:42:51 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-05-29 15:16:05 -05:00
|
|
|
|
|
|
|
|
|
2006-07-01 04:36:36 -07:00
|
|
|
|
2017-08-14 18:56:16 +00:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2015-04-02 10:11:38 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-04-02 10:11:38 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nbd: support FLUSH requests
Currently, the NBD device does not accept flush requests from the Linux
block layer. If the NBD server opened the target with neither O_SYNC nor
O_DSYNC, however, the device will be effectively backed by a writeback
cache. Without issuing flushes properly, operation of the NBD device will
not be safe against power losses.
The NBD protocol has support for both a cache flush command and a FUA
command flag; the server will also pass a flag to note its support for
these features. This patch adds support for the cache flush command and
flag. In the kernel, we receive the flags via the NBD_SET_FLAGS ioctl,
and map NBD_FLAG_SEND_FLUSH to the argument of blk_queue_flush. When the
flag is active the block layer will send REQ_FLUSH requests, which we
translate to NBD_CMD_FLUSH commands.
FUA support is not included in this patch because all free software
servers implement it with a full fdatasync; thus it has no advantage over
supporting flush only. Because I [Paolo] cannot really benchmark it in a
realistic scenario, I cannot tell if it is a good idea or not. It is also
not clear if it is valid for an NBD server to support FUA but not flush.
The Linux block layer gives a warning for this combination, the NBD
protocol documentation says nothing about it.
The patch also fixes a small problem in the handling of flags: nbd->flags
must be cleared at the end of NBD_DO_IT, but the driver was not doing
that. The bug manifests itself as follows. Suppose you two different
client/server pairs to start the NBD device. Suppose also that the first
client supports NBD_SET_FLAGS, and the first server sends
NBD_FLAG_SEND_FLUSH; the second pair instead does neither of these two
things. Before this patch, the second invocation of NBD_DO_IT will use a
stale value of nbd->flags, and the second server will issue an error every
time it receives an NBD_CMD_FLUSH command.
This bug is pre-existing, but it becomes much more important after this
patch; flush failures make the device pretty much unusable, unlike
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Acked-by: Paul Clements <Paul.Clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-02-27 17:05:23 -08:00
|
|
|
|
2012-10-04 17:16:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-21 17:13:08 +05:30
|
|
|
|
2018-05-24 13:38:59 -06:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-05-16 14:51:17 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2018-05-16 14:51:17 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2018-05-16 14:51:17 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-19 11:44:27 +05:30
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2018-05-30 10:45:11 -06:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-05-30 10:45:11 -06:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-05-30 10:45:11 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2018-05-16 14:51:19 -04:00
|
|
|
|
|
|
|
|
|
2018-05-23 13:35:59 -04:00
|
|
|
|
|
|
|
|
|
2018-06-05 11:41:23 -04:00
|
|
|
|
2018-05-23 13:35:59 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-05-16 14:51:19 -04:00
|
|
|
|
2019-01-14 09:48:09 +01:00
|
|
|
|
2018-05-16 14:51:19 -04:00
|
|
|
|
2019-01-14 09:48:09 +01:00
|
|
|
|
|
|
|
|
|
2018-05-16 14:51:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
|
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-05-16 14:51:18 -04:00
|
|
|
|
|
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
|
|
|
|
|
2017-04-20 16:03:06 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-20 16:03:06 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-06-04 10:40:12 -06:00
|
|
|
|
2017-04-20 16:03:06 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-20 16:03:06 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-04-02 10:11:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:01 +02:00
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2015-08-17 08:20:02 +02:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:40 -07:00
|
|
|
|
|
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
2016-09-08 12:33:40 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2019-10-21 15:56:27 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2019-10-21 15:56:27 -04:00
|
|
|
|
2018-05-29 15:52:31 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2015-10-06 20:03:54 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2018-05-30 10:45:11 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2018-05-29 15:52:29 +02:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2018-05-29 15:52:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-05-08 15:59:53 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-02 13:04:47 -07:00
|
|
|
|
2016-12-05 16:20:29 -05:00
|
|
|
|
2011-08-19 14:48:22 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 13:04:47 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
2015-11-12 04:51:19 -05:00
|
|
|
|
2017-05-08 15:59:53 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-07-31 16:44:32 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:00 +02:00
|
|
|
|
2015-11-12 04:51:19 -05:00
|
|
|
|
2015-08-17 08:20:00 +02:00
|
|
|
|
2015-11-12 04:51:19 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
2015-11-12 04:51:19 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-05-08 15:59:53 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-24 15:57:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-01-19 16:08:49 -05:00
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-07 22:24:45 +09:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2015-04-17 22:37:21 +02:00
|
|
|
|
2017-05-25 23:55:54 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2015-04-17 22:37:21 +02:00
|
|
|
|
2018-10-20 00:57:56 +01:00
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
2019-08-13 11:39:50 -05:00
|
|
|
|
|
|
|
|
|
2017-01-31 16:57:31 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-01-31 16:57:28 +01:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-01-31 16:57:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-25 23:55:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 11:49:49 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2019-08-13 11:39:52 -05:00
|
|
|
|
2017-05-25 23:55:54 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
nbd: support FLUSH requests
Currently, the NBD device does not accept flush requests from the Linux
block layer. If the NBD server opened the target with neither O_SYNC nor
O_DSYNC, however, the device will be effectively backed by a writeback
cache. Without issuing flushes properly, operation of the NBD device will
not be safe against power losses.
The NBD protocol has support for both a cache flush command and a FUA
command flag; the server will also pass a flag to note its support for
these features. This patch adds support for the cache flush command and
flag. In the kernel, we receive the flags via the NBD_SET_FLAGS ioctl,
and map NBD_FLAG_SEND_FLUSH to the argument of blk_queue_flush. When the
flag is active the block layer will send REQ_FLUSH requests, which we
translate to NBD_CMD_FLUSH commands.
FUA support is not included in this patch because all free software
servers implement it with a full fdatasync; thus it has no advantage over
supporting flush only. Because I [Paolo] cannot really benchmark it in a
realistic scenario, I cannot tell if it is a good idea or not. It is also
not clear if it is valid for an NBD server to support FUA but not flush.
The Linux block layer gives a warning for this combination, the NBD
protocol documentation says nothing about it.
The patch also fixes a small problem in the handling of flags: nbd->flags
must be cleared at the end of NBD_DO_IT, but the driver was not doing
that. The bug manifests itself as follows. Suppose you two different
client/server pairs to start the NBD device. Suppose also that the first
client supports NBD_SET_FLAGS, and the first server sends
NBD_FLAG_SEND_FLUSH; the second pair instead does neither of these two
things. Before this patch, the second invocation of NBD_DO_IT will use a
stale value of nbd->flags, and the second server will issue an error every
time it receives an NBD_CMD_FLUSH command.
This bug is pre-existing, but it becomes much more important after this
patch; flush failures make the device pretty much unusable, unlike
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Acked-by: Paul Clements <Paul.Clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-02-27 17:05:23 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-04-26 11:49:48 -07:00
|
|
|
|
|
|
|
|
|
2015-04-02 10:11:38 +02:00
|
|
|
|
2018-06-04 10:40:12 -06:00
|
|
|
|
2015-04-02 10:11:38 +02:00
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2019-04-26 11:49:49 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-10-24 15:57:18 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2017-06-03 09:38:05 +02:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-12-05 16:20:29 -05:00
|
|
|
|
2011-08-19 14:48:22 +02:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-11-23 17:19:00 -08:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-19 16:08:49 -05:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
2015-04-02 10:11:38 +02:00
|
|
|
|
2018-06-04 10:40:12 -06:00
|
|
|
|
2018-10-20 00:57:56 +01:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-08-16 13:43:12 +02:00
|
|
|
|
2017-10-24 15:57:18 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2017-06-03 09:38:05 +02:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2012-03-28 14:42:51 -07:00
|
|
|
|
2011-08-19 14:48:22 +02:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2007-08-16 13:43:12 +02:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-11-17 12:30:37 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2019-04-26 11:49:49 -07:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-10-20 00:57:56 +01:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-07-30 03:03:31 -07:00
|
|
|
|
|
|
|
|
|
2012-03-28 14:42:51 -07:00
|
|
|
|
2006-07-30 03:03:31 -07:00
|
|
|
|
2015-08-17 08:20:03 +02:00
|
|
|
|
2006-07-30 03:03:31 -07:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-04-26 11:49:49 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-21 15:56:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-03-28 14:42:51 -07:00
|
|
|
|
2011-08-19 14:48:22 +02:00
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-06-04 10:40:12 -06:00
|
|
|
|
2015-04-17 22:37:21 +02:00
|
|
|
|
2007-09-25 12:35:59 +02:00
|
|
|
|
2013-11-23 17:19:00 -08:00
|
|
|
|
2007-09-25 12:35:59 +02:00
|
|
|
|
|
|
|
|
|
2018-10-20 00:57:56 +01:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2007-08-16 13:43:12 +02:00
|
|
|
|
2012-03-28 14:42:51 -07:00
|
|
|
|
2011-08-19 14:48:22 +02:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
2007-08-16 13:43:12 +02:00
|
|
|
|
2015-04-02 10:11:38 +02:00
|
|
|
|
2018-06-04 10:40:12 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2019-04-26 11:49:49 -07:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-08-17 08:20:03 +02:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2015-08-17 08:20:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-20 16:03:09 +02:00
|
|
|
|
2015-08-17 08:20:03 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-11-08 10:24:07 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-05-30 18:51:00 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-10-21 15:56:27 -04:00
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2019-10-21 15:56:27 -04:00
|
|
|
|
|
|
|
|
|
2017-04-20 16:03:09 +02:00
|
|
|
|
2018-11-08 10:24:07 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-04 09:57:09 +03:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2017-07-04 09:57:09 +03:00
|
|
|
|
2015-08-17 08:20:04 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2018-05-30 10:45:11 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2008-04-29 01:02:46 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-06 16:11:58 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-05 16:20:29 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-11-06 16:11:58 -05:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-06-03 09:38:04 +02:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-06 16:11:58 -05:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2008-04-29 01:02:46 -07:00
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-06 16:11:58 -05:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
2008-04-29 01:02:46 -07:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2017-11-06 16:11:58 -05:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2017-11-06 16:11:58 -05:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2008-04-29 01:02:46 -07:00
|
|
|
|
|
|
|
|
|
2017-06-03 09:38:05 +02:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-02 16:22:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-10-02 16:22:08 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-10-17 16:27:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:09:11 +08:00
|
|
|
|
2019-10-17 16:27:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2019-10-17 16:27:34 -05:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:56 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:56 -04:00
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:56 -04:00
|
|
|
|
2019-09-23 15:09:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:56 -04:00
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:56 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:01:57 -04:00
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-17 16:27:34 -05:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-21 10:48:15 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-07-25 13:31:19 -04:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-29 12:04:51 +01:00
|
|
|
|
|
|
|
|
|
2017-03-24 14:08:29 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2015-10-29 12:04:51 +01:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2015-10-29 12:06:15 +01:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2018-03-07 17:10:10 -08:00
|
|
|
|
2017-05-25 23:55:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-29 12:06:15 +01:00
|
|
|
|
2016-03-30 10:10:53 -06:00
|
|
|
|
2015-10-29 12:06:15 +01:00
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-11-12 05:09:35 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-07-21 10:48:14 -04:00
|
|
|
|
|
|
|
|
|
2018-10-20 00:57:56 +01:00
|
|
|
|
2017-07-21 10:48:14 -04:00
|
|
|
|
2017-03-24 14:08:26 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-21 10:48:14 -04:00
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2017-07-21 10:48:13 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-23 17:49:55 +02:00
|
|
|
|
2017-05-23 17:49:54 +02:00
|
|
|
|
|
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-23 17:49:54 +02:00
|
|
|
|
2018-05-23 13:35:59 -04:00
|
|
|
|
2018-06-05 11:41:23 -04:00
|
|
|
|
2018-05-23 13:35:59 -04:00
|
|
|
|
2018-03-07 17:10:10 -08:00
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2015-10-29 11:51:16 +01:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-21 10:48:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
2017-10-09 13:12:10 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2019-12-08 16:51:50 -06:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2019-12-08 16:51:50 -06:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2018-05-16 14:51:22 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:03 -04:00
|
|
|
|
2019-07-31 20:13:10 +08:00
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
|
|
|
|
|
2019-05-29 15:16:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:52 -05:00
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:49 -05:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
|
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2019-05-29 15:16:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-04 11:52:34 -06:00
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-13 10:39:47 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-02-13 10:39:47 -05:00
|
|
|
|
2015-07-27 07:36:49 +02:00
|
|
|
|
2017-04-06 17:01:59 -04:00
|
|
|
|
2017-02-13 10:39:47 -05:00
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
2019-08-13 11:39:52 -05:00
|
|
|
|
2007-10-16 23:27:37 -07:00
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
2012-10-04 17:16:15 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2012-10-04 17:16:15 -07:00
|
|
|
|
2017-02-07 17:10:22 -05:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-01-06 00:09:47 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-28 14:42:51 -07:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-05 22:25:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-22 14:04:40 -05:00
|
|
|
|
2009-04-02 16:58:41 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2019-05-29 15:16:05 -05:00
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2018-05-16 14:51:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2009-09-21 17:01:13 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
|
|
|
|
|
2010-07-08 10:18:46 +02:00
|
|
|
|
2016-01-07 10:04:37 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-25 23:55:54 -04:00
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-10-24 21:15:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
2015-10-24 21:15:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
2015-10-24 21:15:34 +02:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-09-08 12:33:40 -07:00
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2016-06-08 10:32:10 -04:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-10-24 21:15:34 +02:00
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-01 10:19:08 -06:00
|
|
|
|
|
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
2017-05-01 10:19:08 -06:00
|
|
|
|
2018-07-16 12:11:34 -04:00
|
|
|
|
2018-07-16 12:11:35 -04:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-30 13:39:16 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2017-04-20 16:03:06 +02:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
2016-09-08 12:33:40 -07:00
|
|
|
|
2016-09-08 12:33:37 -07:00
|
|
|
|
|
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-15 19:13:24 +08:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-07 17:10:10 -08:00
|
|
|
|
|
|
|
|
|
2018-05-23 13:35:59 -04:00
|
|
|
|
2018-06-05 11:41:23 -04:00
|
|
|
|
2018-05-23 13:35:59 -04:00
|
|
|
|
2017-04-18 16:22:51 -04:00
|
|
|
|
2017-04-20 15:47:01 -04:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:01:58 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-18 09:32:43 -07:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2018-07-18 09:32:43 -07:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-18 09:32:43 -07:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-29 15:16:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-12 11:14:55 -06:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-14 18:25:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2019-05-29 15:16:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
netlink: make validation more configurable for future strictness
We currently have two levels of strict validation:
1) liberal (default)
- undefined (type >= max) & NLA_UNSPEC attributes accepted
- attribute length >= expected accepted
- garbage at end of message accepted
2) strict (opt-in)
- NLA_UNSPEC attributes accepted
- attribute length >= expected accepted
Split out parsing strictness into four different options:
* TRAILING - check that there's no trailing data after parsing
attributes (in message or nested)
* MAXTYPE - reject attrs > max known type
* UNSPEC - reject attributes with NLA_UNSPEC policy entries
* STRICT_ATTRS - strictly validate attribute size
The default for future things should be *everything*.
The current *_strict() is a combination of TRAILING and MAXTYPE,
and is renamed to _deprecated_strict().
The current regular parsing has none of this, and is renamed to
*_parse_deprecated().
Additionally it allows us to selectively set one of the new flags
even on old policies. Notably, the UNSPEC flag could be useful in
this case, since it can be arranged (by filling in the policy) to
not be an incompatible userspace ABI change, but would then going
forward prevent forgetting attribute entries. Similar can apply
to the POLICY flag.
We end up with the following renames:
* nla_parse -> nla_parse_deprecated
* nla_parse_strict -> nla_parse_deprecated_strict
* nlmsg_parse -> nlmsg_parse_deprecated
* nlmsg_parse_strict -> nlmsg_parse_deprecated_strict
* nla_parse_nested -> nla_parse_nested_deprecated
* nla_validate_nested -> nla_validate_nested_deprecated
Using spatch, of course:
@@
expression TB, MAX, HEAD, LEN, POL, EXT;
@@
-nla_parse(TB, MAX, HEAD, LEN, POL, EXT)
+nla_parse_deprecated(TB, MAX, HEAD, LEN, POL, EXT)
@@
expression NLH, HDRLEN, TB, MAX, POL, EXT;
@@
-nlmsg_parse(NLH, HDRLEN, TB, MAX, POL, EXT)
+nlmsg_parse_deprecated(NLH, HDRLEN, TB, MAX, POL, EXT)
@@
expression NLH, HDRLEN, TB, MAX, POL, EXT;
@@
-nlmsg_parse_strict(NLH, HDRLEN, TB, MAX, POL, EXT)
+nlmsg_parse_deprecated_strict(NLH, HDRLEN, TB, MAX, POL, EXT)
@@
expression TB, MAX, NLA, POL, EXT;
@@
-nla_parse_nested(TB, MAX, NLA, POL, EXT)
+nla_parse_nested_deprecated(TB, MAX, NLA, POL, EXT)
@@
expression START, MAX, POL, EXT;
@@
-nla_validate_nested(START, MAX, POL, EXT)
+nla_validate_nested_deprecated(START, MAX, POL, EXT)
@@
expression NLH, HDRLEN, MAX, POL, EXT;
@@
-nlmsg_validate(NLH, HDRLEN, MAX, POL, EXT)
+nlmsg_validate_deprecated(NLH, HDRLEN, MAX, POL, EXT)
For this patch, don't actually add the strict, non-renamed versions
yet so that it breaks compile if I get it wrong.
Also, while at it, make nla_validate and nla_parse go down to a
common __nla_validate_parse() function to avoid code duplication.
Ultimately, this allows us to have very strict validation for every
new caller of nla_parse()/nlmsg_parse() etc as re-introduced in the
next patch, while existing things will continue to work as is.
In effect then, this adds fully strict validation for any new command.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-26 14:07:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-29 15:16:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-13 11:39:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:06 +05:30
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
2019-09-17 17:26:05 +05:30
|
|
|
|
2018-06-15 14:05:32 -07:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
netlink: make validation more configurable for future strictness
We currently have two levels of strict validation:
1) liberal (default)
- undefined (type >= max) & NLA_UNSPEC attributes accepted
- attribute length >= expected accepted
- garbage at end of message accepted
2) strict (opt-in)
- NLA_UNSPEC attributes accepted
- attribute length >= expected accepted
Split out parsing strictness into four different options:
* TRAILING - check that there's no trailing data after parsing
attributes (in message or nested)
* MAXTYPE - reject attrs > max known type
* UNSPEC - reject attributes with NLA_UNSPEC policy entries
* STRICT_ATTRS - strictly validate attribute size
The default for future things should be *everything*.
The current *_strict() is a combination of TRAILING and MAXTYPE,
and is renamed to _deprecated_strict().
The current regular parsing has none of this, and is renamed to
*_parse_deprecated().
Additionally it allows us to selectively set one of the new flags
even on old policies. Notably, the UNSPEC flag could be useful in
this case, since it can be arranged (by filling in the policy) to
not be an incompatible userspace ABI change, but would then going
forward prevent forgetting attribute entries. Similar can apply
to the POLICY flag.
We end up with the following renames:
* nla_parse -> nla_parse_deprecated
* nla_parse_strict -> nla_parse_deprecated_strict
* nlmsg_parse -> nlmsg_parse_deprecated
* nlmsg_parse_strict -> nlmsg_parse_deprecated_strict
* nla_parse_nested -> nla_parse_nested_deprecated
* nla_validate_nested -> nla_validate_nested_deprecated
Using spatch, of course:
@@
expression TB, MAX, HEAD, LEN, POL, EXT;
@@
-nla_parse(TB, MAX, HEAD, LEN, POL, EXT)
+nla_parse_deprecated(TB, MAX, HEAD, LEN, POL, EXT)
@@
expression NLH, HDRLEN, TB, MAX, POL, EXT;
@@
-nlmsg_parse(NLH, HDRLEN, TB, MAX, POL, EXT)
+nlmsg_parse_deprecated(NLH, HDRLEN, TB, MAX, POL, EXT)
@@
expression NLH, HDRLEN, TB, MAX, POL, EXT;
@@
-nlmsg_parse_strict(NLH, HDRLEN, TB, MAX, POL, EXT)
+nlmsg_parse_deprecated_strict(NLH, HDRLEN, TB, MAX, POL, EXT)
@@
expression TB, MAX, NLA, POL, EXT;
@@
-nla_parse_nested(TB, MAX, NLA, POL, EXT)
+nla_parse_nested_deprecated(TB, MAX, NLA, POL, EXT)
@@
expression START, MAX, POL, EXT;
@@
-nla_validate_nested(START, MAX, POL, EXT)
+nla_validate_nested_deprecated(START, MAX, POL, EXT)
@@
expression NLH, HDRLEN, MAX, POL, EXT;
@@
-nlmsg_validate(NLH, HDRLEN, MAX, POL, EXT)
+nlmsg_validate_deprecated(NLH, HDRLEN, MAX, POL, EXT)
For this patch, don't actually add the strict, non-renamed versions
yet so that it breaks compile if I get it wrong.
Also, while at it, make nla_validate and nla_parse go down to a
common __nla_validate_parse() function to avoid code duplication.
Ultimately, this allows us to have very strict validation for every
new caller of nla_parse()/nlmsg_parse() etc as re-introduced in the
next patch, while existing things will continue to work as is.
In effect then, this adds fully strict validation for any new command.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-26 14:07:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-04-06 17:02:07 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2017-04-06 17:02:01 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
2019-04-26 14:07:31 +02:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
genetlink: make policy common to family
Since maxattr is common, the policy can't really differ sanely,
so make it common as well.
The only user that did in fact manage to make a non-common policy
is taskstats, which has to be really careful about it (since it's
still using a common maxattr!). This is no longer supported, but
we can fake it using pre_doit.
This reduces the size of e.g. nl80211.o (which has lots of commands):
text data bss dec hex filename
398745 14323 2240 415308 6564c net/wireless/nl80211.o (before)
397913 14331 2240 414484 65314 net/wireless/nl80211.o (after)
--------------------------------
-832 +8 0 -824
Which is obviously just 8 bytes for each command, and an added 8
bytes for the new policy pointer. I'm not sure why the ops list is
counted as .text though.
Most of the code transformations were done using the following spatch:
@ops@
identifier OPS;
expression POLICY;
@@
struct genl_ops OPS[] = {
...,
{
- .policy = POLICY,
},
...
};
@@
identifier ops.OPS;
expression ops.POLICY;
identifier fam;
expression M;
@@
struct genl_family fam = {
.ops = OPS,
.maxattr = M,
+ .policy = POLICY,
...
};
This also gets rid of devlink_nl_cmd_region_read_dumpit() accessing
the cb->data as ops, which we want to change in a later genl patch.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-21 22:51:02 +01:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 11:13:06 +02:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-26 11:13:06 +02:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-19 13:14:07 +08:00
|
|
|
|
2017-04-06 17:02:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-06 17:02:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-03-25 03:07:04 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
NBD: add partition support
Permit the use of partitions with network block devices (NBD).
A new parameter is introduced to define how many partition we want to be able
to manage per network block device. This parameter is "max_part".
For instance, to manage 63 partitions / loop device, we will do:
[on the server side]
# nbd-server 1234 /dev/sdb
[on the client side]
# modprobe nbd max_part=63
# ls -l /dev/nbd*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:14 /dev/nbd0
brw-rw---- 1 root disk 43, 64 2008-03-25 11:11 /dev/nbd1
brw-rw---- 1 root disk 43, 640 2008-03-25 11:11 /dev/nbd10
brw-rw---- 1 root disk 43, 704 2008-03-25 11:11 /dev/nbd11
brw-rw---- 1 root disk 43, 768 2008-03-25 11:11 /dev/nbd12
brw-rw---- 1 root disk 43, 832 2008-03-25 11:11 /dev/nbd13
brw-rw---- 1 root disk 43, 896 2008-03-25 11:11 /dev/nbd14
brw-rw---- 1 root disk 43, 960 2008-03-25 11:11 /dev/nbd15
brw-rw---- 1 root disk 43, 128 2008-03-25 11:11 /dev/nbd2
brw-rw---- 1 root disk 43, 192 2008-03-25 11:11 /dev/nbd3
brw-rw---- 1 root disk 43, 256 2008-03-25 11:11 /dev/nbd4
brw-rw---- 1 root disk 43, 320 2008-03-25 11:11 /dev/nbd5
brw-rw---- 1 root disk 43, 384 2008-03-25 11:11 /dev/nbd6
brw-rw---- 1 root disk 43, 448 2008-03-25 11:11 /dev/nbd7
brw-rw---- 1 root disk 43, 512 2008-03-25 11:11 /dev/nbd8
brw-rw---- 1 root disk 43, 576 2008-03-25 11:11 /dev/nbd9
# nbd-client localhost 1234 /dev/nbd0
Negotiation: ..size = 80418240KB
bs=1024, sz=80418240
-------NOTE, RFC: partition table is not automatically read.
The driver sets bdev->bd_invalidated to 1 to force the read of the partition
table of the device, but this is done only on an open of the device.
So we have to do a "touch /dev/nbdX" or something like that.
It can't be done from the nbd-client or nbd driver because at this
level we can't ask to read the partition table and to serve the request
at the same time (-> deadlock)
If someone has a better idea, I'm open to any suggestion.
-------NOTE, RFC
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/nbd0p1 * 1 9965 80043831 83 Linux
/dev/nbd0p2 9966 10011 369495 5 Extended
/dev/nbd0p5 9966 10011 369463+ 82 Linux swap / Solaris
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
brw-rw---- 1 root disk 43, 1 2008-03-25 11:16 /dev/nbd0p1
brw-rw---- 1 root disk 43, 2 2008-03-25 11:16 /dev/nbd0p2
brw-rw---- 1 root disk 43, 5 2008-03-25 11:16 /dev/nbd0p5
# mount /dev/nbd0p1 /mnt
# ls /mnt
bin dev initrd lost+found opt sbin sys var
boot etc initrd.img media proc selinux tmp vmlinuz
cdrom home lib mnt root srv usr
# umount /mnt
# nbd-client -d /dev/nbd0
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
-------NOTE
On "nbd-client -d", we can do an iocl(BLKRRPART) to update partition table:
as the size of the device is 0, we don't have to serve the partition manager
request (-> no deadlock).
-------NOTE
Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 01:02:51 -07:00
|
|
|
|
2011-08-19 14:48:28 +02:00
|
|
|
|
NBD: add partition support
Permit the use of partitions with network block devices (NBD).
A new parameter is introduced to define how many partition we want to be able
to manage per network block device. This parameter is "max_part".
For instance, to manage 63 partitions / loop device, we will do:
[on the server side]
# nbd-server 1234 /dev/sdb
[on the client side]
# modprobe nbd max_part=63
# ls -l /dev/nbd*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:14 /dev/nbd0
brw-rw---- 1 root disk 43, 64 2008-03-25 11:11 /dev/nbd1
brw-rw---- 1 root disk 43, 640 2008-03-25 11:11 /dev/nbd10
brw-rw---- 1 root disk 43, 704 2008-03-25 11:11 /dev/nbd11
brw-rw---- 1 root disk 43, 768 2008-03-25 11:11 /dev/nbd12
brw-rw---- 1 root disk 43, 832 2008-03-25 11:11 /dev/nbd13
brw-rw---- 1 root disk 43, 896 2008-03-25 11:11 /dev/nbd14
brw-rw---- 1 root disk 43, 960 2008-03-25 11:11 /dev/nbd15
brw-rw---- 1 root disk 43, 128 2008-03-25 11:11 /dev/nbd2
brw-rw---- 1 root disk 43, 192 2008-03-25 11:11 /dev/nbd3
brw-rw---- 1 root disk 43, 256 2008-03-25 11:11 /dev/nbd4
brw-rw---- 1 root disk 43, 320 2008-03-25 11:11 /dev/nbd5
brw-rw---- 1 root disk 43, 384 2008-03-25 11:11 /dev/nbd6
brw-rw---- 1 root disk 43, 448 2008-03-25 11:11 /dev/nbd7
brw-rw---- 1 root disk 43, 512 2008-03-25 11:11 /dev/nbd8
brw-rw---- 1 root disk 43, 576 2008-03-25 11:11 /dev/nbd9
# nbd-client localhost 1234 /dev/nbd0
Negotiation: ..size = 80418240KB
bs=1024, sz=80418240
-------NOTE, RFC: partition table is not automatically read.
The driver sets bdev->bd_invalidated to 1 to force the read of the partition
table of the device, but this is done only on an open of the device.
So we have to do a "touch /dev/nbdX" or something like that.
It can't be done from the nbd-client or nbd driver because at this
level we can't ask to read the partition table and to serve the request
at the same time (-> deadlock)
If someone has a better idea, I'm open to any suggestion.
-------NOTE, RFC
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/nbd0p1 * 1 9965 80043831 83 Linux
/dev/nbd0p2 9966 10011 369495 5 Extended
/dev/nbd0p5 9966 10011 369463+ 82 Linux swap / Solaris
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
brw-rw---- 1 root disk 43, 1 2008-03-25 11:16 /dev/nbd0p1
brw-rw---- 1 root disk 43, 2 2008-03-25 11:16 /dev/nbd0p2
brw-rw---- 1 root disk 43, 5 2008-03-25 11:16 /dev/nbd0p5
# mount /dev/nbd0p1 /mnt
# ls /mnt
bin dev initrd lost+found opt sbin sys var
boot etc initrd.img media proc selinux tmp vmlinuz
cdrom home lib mnt root srv usr
# umount /mnt
# nbd-client -d /dev/nbd0
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
-------NOTE
On "nbd-client -d", we can do an iocl(BLKRRPART) to update partition table:
as the size of the device is 0, we don't have to serve the partition manager
request (-> no deadlock).
-------NOTE
Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 01:02:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-28 14:44:46 +02:00
|
|
|
|
NBD: add partition support
Permit the use of partitions with network block devices (NBD).
A new parameter is introduced to define how many partition we want to be able
to manage per network block device. This parameter is "max_part".
For instance, to manage 63 partitions / loop device, we will do:
[on the server side]
# nbd-server 1234 /dev/sdb
[on the client side]
# modprobe nbd max_part=63
# ls -l /dev/nbd*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:14 /dev/nbd0
brw-rw---- 1 root disk 43, 64 2008-03-25 11:11 /dev/nbd1
brw-rw---- 1 root disk 43, 640 2008-03-25 11:11 /dev/nbd10
brw-rw---- 1 root disk 43, 704 2008-03-25 11:11 /dev/nbd11
brw-rw---- 1 root disk 43, 768 2008-03-25 11:11 /dev/nbd12
brw-rw---- 1 root disk 43, 832 2008-03-25 11:11 /dev/nbd13
brw-rw---- 1 root disk 43, 896 2008-03-25 11:11 /dev/nbd14
brw-rw---- 1 root disk 43, 960 2008-03-25 11:11 /dev/nbd15
brw-rw---- 1 root disk 43, 128 2008-03-25 11:11 /dev/nbd2
brw-rw---- 1 root disk 43, 192 2008-03-25 11:11 /dev/nbd3
brw-rw---- 1 root disk 43, 256 2008-03-25 11:11 /dev/nbd4
brw-rw---- 1 root disk 43, 320 2008-03-25 11:11 /dev/nbd5
brw-rw---- 1 root disk 43, 384 2008-03-25 11:11 /dev/nbd6
brw-rw---- 1 root disk 43, 448 2008-03-25 11:11 /dev/nbd7
brw-rw---- 1 root disk 43, 512 2008-03-25 11:11 /dev/nbd8
brw-rw---- 1 root disk 43, 576 2008-03-25 11:11 /dev/nbd9
# nbd-client localhost 1234 /dev/nbd0
Negotiation: ..size = 80418240KB
bs=1024, sz=80418240
-------NOTE, RFC: partition table is not automatically read.
The driver sets bdev->bd_invalidated to 1 to force the read of the partition
table of the device, but this is done only on an open of the device.
So we have to do a "touch /dev/nbdX" or something like that.
It can't be done from the nbd-client or nbd driver because at this
level we can't ask to read the partition table and to serve the request
at the same time (-> deadlock)
If someone has a better idea, I'm open to any suggestion.
-------NOTE, RFC
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/nbd0p1 * 1 9965 80043831 83 Linux
/dev/nbd0p2 9966 10011 369495 5 Extended
/dev/nbd0p5 9966 10011 369463+ 82 Linux swap / Solaris
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
brw-rw---- 1 root disk 43, 1 2008-03-25 11:16 /dev/nbd0p1
brw-rw---- 1 root disk 43, 2 2008-03-25 11:16 /dev/nbd0p2
brw-rw---- 1 root disk 43, 5 2008-03-25 11:16 /dev/nbd0p5
# mount /dev/nbd0p1 /mnt
# ls /mnt
bin dev initrd lost+found opt sbin sys var
boot etc initrd.img media proc selinux tmp vmlinuz
cdrom home lib mnt root srv usr
# umount /mnt
# nbd-client -d /dev/nbd0
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
-------NOTE
On "nbd-client -d", we can do an iocl(BLKRRPART) to update partition table:
as the size of the device is 0, we don't have to serve the partition manager
request (-> no deadlock).
-------NOTE
Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 01:02:51 -07:00
|
|
|
|
|
|
|
|
|
2011-05-28 14:44:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-28 14:44:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 14:10:06 -05:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-17 08:20:06 +02:00
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-28 09:49:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-06 17:02:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-02-01 16:11:40 -05:00
|
|
|
|
2017-04-06 17:02:00 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-05-01 08:59:07 -07:00
|
|
|
|
NBD: add partition support
Permit the use of partitions with network block devices (NBD).
A new parameter is introduced to define how many partition we want to be able
to manage per network block device. This parameter is "max_part".
For instance, to manage 63 partitions / loop device, we will do:
[on the server side]
# nbd-server 1234 /dev/sdb
[on the client side]
# modprobe nbd max_part=63
# ls -l /dev/nbd*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:14 /dev/nbd0
brw-rw---- 1 root disk 43, 64 2008-03-25 11:11 /dev/nbd1
brw-rw---- 1 root disk 43, 640 2008-03-25 11:11 /dev/nbd10
brw-rw---- 1 root disk 43, 704 2008-03-25 11:11 /dev/nbd11
brw-rw---- 1 root disk 43, 768 2008-03-25 11:11 /dev/nbd12
brw-rw---- 1 root disk 43, 832 2008-03-25 11:11 /dev/nbd13
brw-rw---- 1 root disk 43, 896 2008-03-25 11:11 /dev/nbd14
brw-rw---- 1 root disk 43, 960 2008-03-25 11:11 /dev/nbd15
brw-rw---- 1 root disk 43, 128 2008-03-25 11:11 /dev/nbd2
brw-rw---- 1 root disk 43, 192 2008-03-25 11:11 /dev/nbd3
brw-rw---- 1 root disk 43, 256 2008-03-25 11:11 /dev/nbd4
brw-rw---- 1 root disk 43, 320 2008-03-25 11:11 /dev/nbd5
brw-rw---- 1 root disk 43, 384 2008-03-25 11:11 /dev/nbd6
brw-rw---- 1 root disk 43, 448 2008-03-25 11:11 /dev/nbd7
brw-rw---- 1 root disk 43, 512 2008-03-25 11:11 /dev/nbd8
brw-rw---- 1 root disk 43, 576 2008-03-25 11:11 /dev/nbd9
# nbd-client localhost 1234 /dev/nbd0
Negotiation: ..size = 80418240KB
bs=1024, sz=80418240
-------NOTE, RFC: partition table is not automatically read.
The driver sets bdev->bd_invalidated to 1 to force the read of the partition
table of the device, but this is done only on an open of the device.
So we have to do a "touch /dev/nbdX" or something like that.
It can't be done from the nbd-client or nbd driver because at this
level we can't ask to read the partition table and to serve the request
at the same time (-> deadlock)
If someone has a better idea, I'm open to any suggestion.
-------NOTE, RFC
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/nbd0p1 * 1 9965 80043831 83 Linux
/dev/nbd0p2 9966 10011 369495 5 Extended
/dev/nbd0p5 9966 10011 369463+ 82 Linux swap / Solaris
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
brw-rw---- 1 root disk 43, 1 2008-03-25 11:16 /dev/nbd0p1
brw-rw---- 1 root disk 43, 2 2008-03-25 11:16 /dev/nbd0p2
brw-rw---- 1 root disk 43, 5 2008-03-25 11:16 /dev/nbd0p5
# mount /dev/nbd0p1 /mnt
# ls /mnt
bin dev initrd lost+found opt sbin sys var
boot etc initrd.img media proc selinux tmp vmlinuz
cdrom home lib mnt root srv usr
# umount /mnt
# nbd-client -d /dev/nbd0
# ls -l /dev/nbd0*
brw-rw---- 1 root disk 43, 0 2008-03-25 11:16 /dev/nbd0
-------NOTE
On "nbd-client -d", we can do an iocl(BLKRRPART) to update partition table:
as the size of the device is 0, we don't have to serve the partition manager
request (-> no deadlock).
-------NOTE
Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 01:02:51 -07:00
|
|
|
|
|
|
|
|
|
2017-08-14 18:56:16 +00:00
|
|
|
|