Displaying 15 results from an estimated 15 matches for "extent_zero".
2020 Aug 10
5
[PATCH nbdkit] python: Implement can_extents + extents.
...quot;Test cache."""
self.connect ({"size": 512, "can_cache": "native"})
self.h.cache (512, 0)
+
+ # We don't have access to the magic constants defined in the
+ # nbdkit module, so redefine them here.
+ EXTENT_HOLE = 1
+ EXTENT_ZERO = 2
+
+ def test_extents_1 (self):
+ """Test extents."""
+
+ offset = None
+ entries = []
+
+ def f(meta_context, o, e, err):
+ nonlocal offset, entries
+ if meta_context != "base:allocation": return
+...
2020 Aug 10
0
Re: [PATCH nbdkit] python: Implement can_extents + extents.
...> self.connect ({"size": 512, "can_cache": "native"})
> self.h.cache (512, 0)
> +
> + # We don't have access to the magic constants defined in the
> + # nbdkit module, so redefine them here.
> + EXTENT_HOLE = 1
> + EXTENT_ZERO = 2
> +
> + def test_extents_1 (self):
> + """Test extents."""
> +
> + offset = None
> + entries = []
> +
> + def f(meta_context, o, e, err):
> + nonlocal offset, entries
> + if meta_con...
2019 Nov 22
2
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...PyModule_AddIntConstant (m, "CACHE_EMULATE", NBDKIT_CACHE_EMULATE);
> + PyModule_AddIntConstant (m, "CACHE_NATIVE", NBDKIT_CACHE_NATIVE);
> +
> + PyModule_AddIntConstant (m, "EXTENT_HOLE", NBDKIT_EXTENT_HOLE);
> + PyModule_AddIntConstant (m, "EXTENT_ZERO", NBDKIT_EXTENT_ZERO);
> +
> return m;
> }
>
> --
> 2.23.0
>
2019 Nov 22
1
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
..._EMULATE", NBDKIT_CACHE_EMULATE);
> > > + PyModule_AddIntConstant (m, "CACHE_NATIVE", NBDKIT_CACHE_NATIVE);
> > > +
> > > + PyModule_AddIntConstant (m, "EXTENT_HOLE", NBDKIT_EXTENT_HOLE);
> > > + PyModule_AddIntConstant (m, "EXTENT_ZERO", NBDKIT_EXTENT_ZERO);
> > > +
> > > return m;
> > > }
> > >
> > > --
> > > 2.23.0
> > >
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualiza...
2019 Nov 22
0
[PATCH nbdkit v2 02/10] python: Add various constants to the API.
...DKIT_CACHE_NONE);
+ PyModule_AddIntConstant (m, "CACHE_EMULATE", NBDKIT_CACHE_EMULATE);
+ PyModule_AddIntConstant (m, "CACHE_NATIVE", NBDKIT_CACHE_NATIVE);
+
+ PyModule_AddIntConstant (m, "EXTENT_HOLE", NBDKIT_EXTENT_HOLE);
+ PyModule_AddIntConstant (m, "EXTENT_ZERO", NBDKIT_EXTENT_ZERO);
+
return m;
}
--
2.23.0
2019 Nov 22
0
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...tant (m, "CACHE_EMULATE", NBDKIT_CACHE_EMULATE);
> > + PyModule_AddIntConstant (m, "CACHE_NATIVE", NBDKIT_CACHE_NATIVE);
> > +
> > + PyModule_AddIntConstant (m, "EXTENT_HOLE", NBDKIT_EXTENT_HOLE);
> > + PyModule_AddIntConstant (m, "EXTENT_ZERO", NBDKIT_EXTENT_ZERO);
> > +
> > return m;
> > }
> >
> > --
> > 2.23.0
> >
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v convert...
2020 Aug 10
0
Re: [PATCH nbdkit] python: Implement can_extents + extents.
...t; self.connect ({"size": 512, "can_cache": "native"})
> self.h.cache (512, 0)
> +
> + # We don't have access to the magic constants defined in the
> + # nbdkit module, so redefine them here.
> + EXTENT_HOLE = 1
> + EXTENT_ZERO = 2
...these constants should have been available through 'import nbdkit'.
Otherwise this looks reasonable.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...;< blktosec) - 1;
+ block_t block;
+ size_t nblocks = 0;
+
+ ufs_debug("ufs_next_extent:\n");
+ block = ufs_bmap(inode, lstart >> blktosec, &nblocks);
+ ufs_debug("blk: %u\n", block);
+
+ if (!block) // Sparse block
+ inode->next_extent.pstart = EXTENT_ZERO;
+ else
+ /*
+ * Convert blk into sect addr and add the remaining
+ * sectors into pstart (sector start address).
+ */
+ inode->next_extent.pstart =
+ ((sector_t) (block << frag_shift) >> SECTOR_SHIFT(fs)) |
+ (lstart & blkmask);
+
+ /*
+ * Subtract the remai...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...;< blktosec) - 1;
+ block_t block;
+ size_t nblocks = 0;
+
+ ufs_debug("ufs_next_extent:\n");
+ block = ufs_bmap(inode, lstart >> blktosec, &nblocks);
+ ufs_debug("blk: %u\n", block);
+
+ if (!block) // Sparse block
+ inode->next_extent.pstart = EXTENT_ZERO;
+ else
+ /*
+ * Convert blk into sect addr and add the remaining
+ * sectors into pstart (sector start address).
+ */
+ inode->next_extent.pstart =
+ ((sector_t) (block << frag_shift) >> SECTOR_SHIFT(fs)) |
+ (lstart & blkmask);
+
+ /*
+ * Subtract the remai...
2019 Nov 21
10
[PATCH nbdkit 0/8] Implement nbdkit API v2 for Python plugins.
And fill out most of the missing bits of the API.
Rich.
2019 Nov 22
18
[PATCH nbdkit v2 00/10] Implement nbdkit API v2 for Python plugins.
v1:
https://www.redhat.com/archives/libguestfs/2019-November/msg00153.html
v2:
- Fix implementation of can_cache.
- Add implementation of can_fua.
- Add a very thorough test suite which tests every command + flag
combination.
2019 Nov 25
7
[PATCH nbdkit v2 0/7] Implement nbdkit API v2 for Python plugins.
v3 was here:
https://www.redhat.com/archives/libguestfs/2019-November/msg00209.html
In v4:
- Rebase on top of current master. Includes various fixes and
updates required because of Nir's patches that went into master.
- Fix api_version() -> API_VERSION in patch 2 noted previously on the
mailing list.
Rich.
2019 Nov 23
8
[PATCH nbdkit v3 0/7] Implement nbdkit API v2 for Python plugins.
v2 was here:
https://www.redhat.com/archives/libguestfs/2019-November/msg00163.html
I pushed patch 1 (with spelling fix), patch 4 and patch 5 since those
were previously ACKed on the list.
Differences in v3:
- Add error checking to PyModule_AddIntConstant.
- Use API_VERSION constant instead of function.
- Add max API version supported to --dump-plugin output.
- Print API_VERSION selected by
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Wrote the documentation below. I think it would be good to push the doc to
the wiki as soon as the UFS support gets merged.
Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install)
-----
There is a confusion about the name of this file system, then I decided to
contact the author who replied:
"The name has always been
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Change since v1:
* Fix bug on dentry structure (thank you specification; btw, sarcasm), and
consequently a bug on ufs_readdir.
* Add readlink support (applied tests for symlinks whose destionation path
were stored in blk pointers and the file itself).
* Several improvements.
Wrote the documentation below. I think it would be good to