]> git.pld-linux.org Git - packages/btrfs-progs.git/blame - btrfs-progs-python-async.patch
- updated to 4.17.1
[packages/btrfs-progs.git] / btrfs-progs-python-async.patch
CommitLineData
6d4283bb
JB
1--- btrfs-progs-v4.17/libbtrfsutil/python/subvolume.c.orig 2018-06-15 16:21:17.000000000 +0200
2+++ btrfs-progs-v4.17/libbtrfsutil/python/subvolume.c 2018-07-19 18:23:25.792471799 +0200
3@@ -322,7 +322,7 @@
4
5 PyObject *create_subvolume(PyObject *self, PyObject *args, PyObject *kwds)
6 {
7- static char *keywords[] = {"path", "async", "qgroup_inherit", NULL};
8+ static char *keywords[] = {"path", "async_", "qgroup_inherit", NULL};
9 struct path_arg path = {.allow_fd = false};
10 enum btrfs_util_error err;
11 int async = 0;
12@@ -352,7 +352,7 @@
13 PyObject *create_snapshot(PyObject *self, PyObject *args, PyObject *kwds)
14 {
15 static char *keywords[] = {
16- "source", "path", "recursive", "read_only", "async",
17+ "source", "path", "recursive", "read_only", "async_",
18 "qgroup_inherit", NULL,
19 };
20 struct path_arg src = {.allow_fd = true}, dst = {.allow_fd = false};
21--- btrfs-progs-v4.17/libbtrfsutil/python/tests/test_subvolume.py.orig 2018-06-15 16:21:17.000000000 +0200
22+++ btrfs-progs-v4.17/libbtrfsutil/python/tests/test_subvolume.py 2018-07-19 18:24:06.355804667 +0200
23@@ -202,7 +202,7 @@
24 btrfsutil.create_subvolume(subvol + '6//')
25 self.assertTrue(btrfsutil.is_subvolume(subvol + '6'))
26
27- transid = btrfsutil.create_subvolume(subvol + '7', async=True)
28+ transid = btrfsutil.create_subvolume(subvol + '7', async_=True)
29 self.assertTrue(btrfsutil.is_subvolume(subvol + '7'))
30 self.assertGreater(transid, 0)
31
32@@ -265,7 +265,7 @@
33 btrfsutil.create_snapshot(subvol, snapshot + '2', recursive=True)
34 self.assertTrue(os.path.exists(os.path.join(snapshot + '2', 'nested/more_nested/nested_dir')))
35
36- transid = btrfsutil.create_snapshot(subvol, snapshot + '3', recursive=True, async=True)
37+ transid = btrfsutil.create_snapshot(subvol, snapshot + '3', recursive=True, async_=True)
38 self.assertTrue(os.path.exists(os.path.join(snapshot + '3', 'nested/more_nested/nested_dir')))
39 self.assertGreater(transid, 0)
40
This page took 0.109783 seconds and 4 git commands to generate.