search for: offs

Displaying 20 results from an estimated 514 matches for "offs".

Did you mean: off
2020 Jul 09
0
[nbdkit PATCH] blocksize: Fix .extents when plugin changes type within minblock
...@@ -43,6 +43,7 @@ #include <nbdkit-filter.h> +#include "cleanup.h" #include "minmax.h" #include "rounding.h" @@ -372,16 +373,37 @@ blocksize_extents (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle, uint32_t count, uint64_t offset, uint32_t flags, struct nbdkit_extents *extents, int *err) { - /* Ask the plugin for blocksize-aligned data. Since the extents - * list start is set to the real offset, everything before the - * offset is ignored automatically. Also we only need to ask for - * maxlen...
2018 Feb 01
0
[nbdkit PATCH v2 3/3] filters: Add blocksize filter
...a, + void *handle) +{ + int64_t size = next_ops->get_size (nxdata); + + return size == -1 ? size : size & ~(minblock - 1); +} + +static int +blocksize_pread (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle, void *b, uint32_t count, uint64_t offs) +{ + char *buf = b; + int r; + uint32_t keep; + uint32_t drop; + + /* Unaligned head */ + if (offs & (minblock - 1)) { + drop = offs & (minblock - 1); + keep = MIN (minblock - drop, count); + r = next_ops->pread (nxdata, bounce, minblock, offs - drop); + if (r) +...
2004 Feb 26
2
Log user log-offs
Does anyone know of a way to log when a user logs off using Samba as a PDC. I have Samba 3.0.2a and can log log-ons using root preexec on a share all users mount, however I do not know of a way to log log-offs. We need this data for record keeping purposes. We don't use roaming profiles, so using root postexec is not an option as shares disconnect when not in use. Thanks for any help, Brandon Turner MSC Computer Operations
2018 Mar 08
0
[nbdkit PATCH v3 05/15] filters: Add blocksize filter
...a, + void *handle) +{ + int64_t size = next_ops->get_size (nxdata); + + return size == -1 ? size : size & ~(minblock - 1); +} + +static int +blocksize_pread (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle, void *b, uint32_t count, uint64_t offs, + uint32_t flags, int *err) +{ + char *buf = b; + uint32_t keep; + uint32_t drop; + + /* Unaligned head */ + if (offs & (minblock - 1)) { + drop = offs & (minblock - 1); + keep = MIN (minblock - drop, count); + if (next_ops->pread (nxdata, bounce, minblock,...
2018 Jan 19
0
[PATCH nbdkit filters-v2 5/5] INCOMPLETE filters: Add nbdkit-partition-filter.
...his can be used to filter a single partition from a disk image. --- TODO | 2 - configure.ac | 1 + filters/Makefile.am | 3 +- filters/delay/delay.c | 12 +-- filters/offset/nbdkit-offset-filter.pod | 17 ++- filters/offset/offset.c | 20 ++-- filters/partition/Makefile.am | 62 +++++++++++ filters/partition/nbdkit-partition-filter.pod | 94 +++++++++++++++++ filters/partition/partition.c | 145 +++++++++...
2009 Feb 16
3
[PATCH 0/2] ocfs2: two fixes for xattr -v2
...s, tiger > For EAs data structure in inode/block are little different from them in > bucket. These two patches try to make them same for the most part. > > The first patch set xh_free_start and xh_name_value_len when EAs in > inode/block. xh_free_start is useful to keep the minimum offset of the > xattr name/value. But xh_name_value_len is not very useful because we > don't have "hole" when EAs in inode/block, we just calculate and set it > here, maybe it's useful for fsck. > > The second patch reserve a blank space between xattr entry and >...
2013 May 15
3
Cut offs on outgoing SIP calls
Hello everyone, I've suffering cut offs after 6 or 7 seconds a call is answered, incoming calls are working fine, but outgoing ones show the gollowing messages when are being dropped: [2013-05-15 12:55:14] WARNING[3569]: chan_sip.c:3641 retrans_pkt: Retransmission timeout reached on transmission ZjJkZjlkZWMyZTE4ZmY2NWZlZTExNDM1MDRhMTY4M...
2019 Mar 19
0
[PATCH nbdkit 5/9] offset: Implement mapping of extents.
Allows you to safely use nbdkit-offset-filter on top of a plugin supporting extents. --- filters/offset/offset.c | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/filters/offset/offset.c b/filters/offset/offset.c index 058571d..4e3f74d 100644 --- a/filters/offset/offset.c +++ b/filters/off...
2007 Jan 06
6
PXE stack access via com32
...X PXE return status code or, in com32 terms (the PXE call argument struct has been copied into the bounce buffer and the buffer field of the PXE call argument struct is setup to point into the bounce buffer as well): inputRegs.es = SEG(__com32.cs_bounce); inputRegs.edi.w[0] = OFFS(__com32.cs_bounce); inputRegs.eax.w[0] = 0x0009; /* call PXE stack */ inputRegs.ebx.w[0] = 0x0071; /* PXENV_GET_CACHED_INFO opcode */ __intcall(0x22, &inputRegs, &outputRegs); However, when setup this way, 'outputRegs.eax.w[0]' contains 'PXENV_EXIT_FAILURE' (and...
2013 Sep 06
1
[PATCH 2/2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
...sk_info *const diskinfo, + com32sys_t *inreg, uint64_t lba, uint8_t count) +{ + static struct disk_ebios_dapa dapa; + void *buf; + + buf = lmalloc(count * diskinfo->bps); + if (!buf) + return NULL; + + dapa.len = sizeof(dapa); + dapa.count = count; + dapa.off = OFFS(buf); + dapa.seg = SEG(buf); + dapa.lba = lba; + + inreg->esi.w[0] = OFFS(&dapa); + inreg->ds = SEG(&dapa); + inreg->edx.b[0] = diskinfo->disk; + + return buf; +} + +/** + * Fill inreg based on CHS addressing properties. + * + * @v diskinfo The disk dr...
2007 Apr 02
2
[LLVMdev] PR400 - alignment for LD/ST
...ressing modes... I assume you're trying to get an alignment value for the 'reg' part, without the "immed" part? This approach would have a couple of problems. Instead, if you wanted a more general alignment model, I'd suggest going for representing alignments as "offset from alignment". In this model, you represent each alignment value as a pair <align,offs>, where offs is always less than align. This allows you to say that "this load is 2 bytes away from a 16-byte aligned pointer" for example. -Chris -- http://nondot.org/sabre/ http:...
2009 Feb 11
2
[PATCH 0/2] ocfs2: two fixes for xattr
Hi, For EAs data structure in inode/block are little different from them in bucket. These two patches try to make them same for the most part. The first patch set xh_free_start and xh_name_value_len when EAs in inode/block. xh_free_start is useful to keep the minimum offset of the xattr name/value. But xh_name_value_len is not very useful because we don't have "hole" when EAs in inode/block, we just calculate and set it here, maybe it's useful for fsck. The second patch reserve a blank space between xattr entry and name/value when EAs in bucket...
2009 Nov 09
1
ImproveProb Function in Design Package
Hello Thanks to Frank Harrell for the great Design package. I noted from Pencina's Article (Statistics in Medicine Vol 27, pp157-172) that the result obtained for the Net Reclassification Index depends upon categorical cut-offs for risk (eg in the paper <6%, 6-20% and >20%). I wondered how the improveprob function arrives at its cut-offs, and whether there was any function to change the default cut-offs used. Thanks for any help you can offer. Yours sincerely David McAllister ***********************************...
2006 Jan 22
0
Asterisk cut offs on TE110P
Hi all, I'm experiencing weird cutoffs on TE110P. All cut offs are pre-seen with an indication 5 coming from the PRI. I've talked to the telco, and they indicated that they don't see any issues. I've also modified the sync source to be the telco, and that didn't solve the problem either. Any ideas anybody ? Nir S
2019 May 13
3
[nbdkit PATCH v2 0/2] Bounce buffer cleanups
Based on Rich's review of my v1 that touched only cache.c, I have now tried to bring all three filters with alignment rounding in line with one another. There is definitely room for future improvements once we teach nbdkit to let filters and plugins advertise block sizes, but I'm hoping to get NBD_CMD_CACHE implemented first. Eric Blake (2): blocksize: Process requests in linear order
2013 Sep 17
1
[PATCH 2/4 v3] com32/disk: Code cleanup at disk_write_sectors and disk_read_sectors.
...diskinfo, com32sys_t *inreg, + uint64_t lba, uint8_t count, uint8_t op_code) +{ + static __lowmem struct disk_ebios_dapa dapa; + void *buf; + + buf = lmalloc(count * diskinfo->bps); + if (!buf) + return NULL; + + dapa.len = sizeof(dapa); + dapa.count = count; + dapa.off = OFFS(buf); + dapa.seg = SEG(buf); + dapa.lba = lba; + + inreg->eax.b[1] = op_code; + inreg->esi.w[0] = OFFS(&dapa); + inreg->ds = SEG(&dapa); + inreg->edx.b[0] = diskinfo->disk; + + return buf; +} + +/** + * Fill inreg based on CHS addressing properties. + * +...
2013 Sep 06
1
[PATCH 2/2 v2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
...k_info *const diskinfo, + com32sys_t *inreg, uint64_t lba, uint8_t count) +{ + static struct disk_ebios_dapa dapa; + void *buf; + + buf = lmalloc(count * diskinfo->bps); + if (!buf) + return NULL; + + dapa.len = sizeof(dapa); + dapa.count = count; + dapa.off = OFFS(buf); + dapa.seg = SEG(buf); + dapa.lba = lba; + + inreg->esi.w[0] = OFFS(&dapa); + inreg->ds = SEG(&dapa); + inreg->edx.b[0] = diskinfo->disk; + + return buf; +} + +/** + * Fill inreg based on CHS addressing properties. + * + * @v diskinfo The disk dr...
2019 Aug 28
1
[nbdkit PATCH] offset, partition: Fix .extents with non-zero offset
When querying the extents of the underlying plugin, we should only translate the starting offset, and let the plugin report for at least as many bytes as our range permits. Otherwise, short-changing the range causes bad behavior such as returning 0 extents, or even failing the creation of an extents tracker: $ cat script case "$1" in get_size) echo 1m;; can_extents) ;;...
2007 Apr 02
0
[LLVMdev] PR400 - alignment for LD/ST
...g to get an > alignment value for the 'reg' part, without the "immed" part? You are correct. > This approach would have a couple of problems. Instead, if you > wanted a > more general alignment model, I'd suggest going for representing > alignments as "offset from alignment". > > In this model, you represent each alignment value as a pair > <align,offs>, > where offs is always less than align. This allows you to say that > "this > load is 2 bytes away from a 16-byte aligned pointer" for example. Shouldn'...
2007 Nov 06
0
[LLVMdev] Dynamic (JIT) type resolution
Nicholas, I guess you're trying to solve the fragile base-class problem by deferring field offset calculations until JIT compilation time? Perhaps I'm missing something, but can't you accomplish this by using external constants in the source program, to be supplied at JIT/link time? external constant i32 @obj.x.offs; external constant i32 @obj.y.offs; define floa...