Displaying 2 results from an estimated 2 matches for "6b9f2979".
2020 Aug 10
0
Re: [PATCH nbdkit] python: Implement can_extents + extents.
...zero (h, count, offset, flags):
> def cache (h, count, offset, flags):
> assert flags == 0
> # do nothing
> +
> +def extents(h, count, offset, flags):
> + return cfg.get ('extents', [])
> diff --git a/tests/test_python.py b/tests/test_python.py
> index 6b9f2979..a8a1a79f 100755
> --- a/tests/test_python.py
> +++ b/tests/test_python.py
> @@ -1,6 +1,6 @@
> #!/usr/bin/env python3
> # nbdkit
> -# Copyright (C) 2019 Red Hat Inc.
> +# Copyright (C) 2019-2020 Red Hat Inc.
> #
> # Redistribution and use in source and binary forms, w...
2020 Aug 10
5
[PATCH nbdkit] python: Implement can_extents + extents.
...ffset + len(buf)
@@ -131,3 +134,6 @@ def zero (h, count, offset, flags):
def cache (h, count, offset, flags):
assert flags == 0
# do nothing
+
+def extents(h, count, offset, flags):
+ return cfg.get ('extents', [])
diff --git a/tests/test_python.py b/tests/test_python.py
index 6b9f2979..a8a1a79f 100755
--- a/tests/test_python.py
+++ b/tests/test_python.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# nbdkit
-# Copyright (C) 2019 Red Hat Inc.
+# Copyright (C) 2019-2020 Red Hat Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted...