search for: header_size

Displaying 20 results from an estimated 48 matches for "header_size".

2009 Feb 20
1
[PATCH 1/1] ocfs2: set gap to seperate entry and value when xattr in bucket
...ct inode *inode, last += 1; } - free = min_offs - ((void *)last - xs->base) - sizeof(__u32); + free = min_offs - ((void *)last - xs->base) - OCFS2_XATTR_HEADER_GAP; if (free < 0) return 0; @@ -5060,8 +5061,8 @@ try_again: xh_free_start = le16_to_cpu(xh->xh_free_start); header_size = sizeof(struct ocfs2_xattr_header) + count * sizeof(struct ocfs2_xattr_entry); - max_free = OCFS2_XATTR_BUCKET_SIZE - - le16_to_cpu(xh->xh_name_value_len) - header_size; + max_free = OCFS2_XATTR_BUCKET_SIZE - header_size - + le16_to_cpu(xh->xh_name_value_len) - OCFS2_XATTR_HEADER_GAP;...
2013 Nov 28
4
[PATCH net] xen-netback: fix fragment detection in checksum setup
...b/drivers/net/xen-netback/netback.c index 919b650..eea7ff2 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -1165,15 +1165,27 @@ static int checksum_setup_ip(struct xenvif *vif, struct sk_buff *skb, struct iphdr *iph = (void *)skb->data; unsigned int header_size; unsigned int off; + bool fragment; int err = -EPROTO; + fragment = false; + off = sizeof(struct iphdr); header_size = skb->network_header + off + MAX_IPOPTLEN; maybe_pull_tail(skb, header_size); + if (ntohs(iph->frag_off) & 0x3fff) + fragment = true; + off = iph->ih...
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
2009 Feb 16
3
[PATCH 0/2] ocfs2: two fixes for xattr -v2
Hi, I have fixed the problems in version 1 patches. These two patches based on the latest main line kernel. Thanks, 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
2005 Sep 19
0
1.0alpha2: two asserts/cores
...0xa9788 "US-ASCII", unknown_charset = 0, search_header = 0} (gdb) print *input $2 = {v_offset = 1530, stream_errno = 0, mmaped = 0, closed = 0, seekable = 0, eof = 0, real_stream = 0xb9c78} (gdb) print *part $3 = {parent = 0xb2188, next = 0x0, children = 0xb2228, physical_pos = 1500, header_size = {physical_size = 857, virtual_size = 875, lines = 0}, body_size = {physical_size = 551367, virtual_size = 558548, lines = 0}, flags = 65, context = 0x0} (gdb) up #5 0x00063464 in message_body_search_ctx (ctx=0xffbff3dc, input=0xb9ca0, part=0xb2188) at message-body-search.c:408 408...
2008 Mar 11
2
Mongrel 1.1.4, possible bug http_response
Hi, I found this while digging inside mongrel to provide IO streaming for mongrel (and thus for Rack and Ramaze): * In socket_error a local variable done is set, which has no effect. * done=() always sets to true, where it (for completeness sake) should honor the passed value. --- a/http_response.rb 2008-03-11 16:59:24.000000000 +0100 +++ b/http_response.rb 2008-03-11 17:02:20.000000000
2005 Dec 22
1
alpha5: (message_body_search_ctx) assert
...lt with gcc 4.0.2, mbox format, imap usage only. INBOX is NFS mounted from another Solaris 9 system, index files are local. Syslog complaint is: imap(user): file message-body-search.c: line 414 (message_body_search_ctx): assertion failed: (input->v_offset == part->physical_pos + part->header_size.physical_size) Jeff Earickson Colby College -------------- next part -------------- %gdb imap core.cwfeng GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under...
2005 Dec 19
0
alpha5: assert and core
...SION --with-ssl=openssl \ --with-ssldir=/opt/openssl/ssl > configure.out The assertion: Dec 16 14:59:54 emerald dovecot: [ID 107833 mail.error] imap(user): file message-body-search.c: line 414 (message_body_search_ctx): assertion failed: (input->v_offset == part->physical_pos + part->header_size.physical_size) Dec 16 14:59:58 emerald dovecot: [ID 107833 mail.error] imap(user): file message-body-search.c: line 414 (message_body_search_ctx): assertion failed: (input->v_offset == part->physical_pos + part->header_size.physical_size) (twice in four seconds). The gdb traceback and co...
2005 Sep 07
0
1.0alpha1: new assert/core
..."US-ASCII", unknown_charset = 0, search_header = 0} (gdb) print *input $2 = {v_offset = 1387, stream_errno = 0, mmaped = 0, closed = 0, seekable = 0, eof = 0, real_stream = 0xb95c8} (gdb) print part *part $3 = {parent = 0xb1918, next = 0xb19b8, children = 0x0, physical_pos = 1384, header_size = {physical_size = 93, virtual_size = 98, lines = 0}, body_size = {physical_size = 4312, virtual_size = 4428, lines = 116}, flags = 72, context = 0x0} (gdb) print found $4 = 0 (gdb) print part->physical_pos $5 = 1384 (gdb) print part->parte ent $6 = (struct message_part *) 0xb1918 (gdb)...
2008 Mar 29
0
Unhandled page fault on 3d games
...1da668 0xc: 0x81da6e0 04120116 File fd=0x81da718 0x3c: 0x83b3eb8 041f0003 Event manual=1 signaled=1 name="" 0xa8: 0x81e36e8 041f0003 Semaphore count=1 max=1 name=L"WINE_DPLAYX_SM" 0xb0: 0x81e3b10 040f0007 Mapping size=00000000000a0000 prot=00000043 file=0x81e3c70 header_size=00000000 base=(nil) shared_file=(nil) name=L"WINE_DPLAYX_FM" 0x83b3eb8:1: Event manual=1 signaled=1 name="" 0x81e3ca8:1: Fd unix_fd=55 user=0x81e3c70 options=00000020 0x81e3c70:1: File fd=0x81e3ca8 0x81e3b10:1: Mapping size=00000000000a0000 prot=00000043 file=0x81e3c70 header_si...
1998 Apr 15
1
Error messages in log.smb
Last friday we upgraded from 1.9.17p4 to version 1.9.18p3 on a HP-UX 9.04 machine. Now we get lots of entries in the log.smb file like: ERROR: del_share_mode: failed to ftruncate share mode file /programs/samba/var/locks/share.1073807365.8199 to size 42 (Permission denied) ERROR: set_share_mode: failed to ftruncate share mode file /programs/samba/var/locks/share.1073807365.8195 to size 42
2007 Apr 18
4
[Bridge] [PATCH/RFC] Let {ip, arp}tables "see" bridged VLAN tagged {I, AR}P packets
...>protocol == __constant_htons(ETH_P_8021Q)) { + memcpy(skb->data - 18, skb->nf_bridge->hh, 18); + skb_push(skb, 4); + } else +#endif + memcpy(skb->data - 16, skb->nf_bridge->hh, 16); + } +} + +static inline +void nf_bridge_save_header(struct sk_buff *skb) +{ + int header_size = 16; + +#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) + if (skb->protocol == __constant_htons(ETH_P_8021Q)) + header_size = 18; +#endif + memcpy(skb->nf_bridge->hh, skb->data - header_size, header_size); } struct bridge_skb_cb { --- linux-2.6.0-test6/net/brid...
2005 Sep 08
1
1.0alpha1: another imap core, no assert
...full = 0x4f688 <_tview_lookup_ext_full>, get_header_ext = 0x4f870 <_tview_get_header_ext>}, index = 0xa9328, log_view = 0xb37f8, indexid = 1124149513, map = 0xac940, new_map = 0x0, map_refs = 0xa21a0, hdr = { major_version = 7 '\a', minor_version = 0 '\0', base_header_size = 120, header_size = 200, record_size = 40, compat_data = "\000\b\004", indexid = 1124149513, flags = 2, uid_validity = 1122257472, next_uid = 271, messages_count = 31, recent_messages_count = 0, seen_messages_count = 9, deleted_messages_count = 0, first_recent_uid_lowwater =...
2004 Sep 10
2
Developing SoundFont FLAC compressor using libFLAC
...ns: A buffer with the encoded metadata header or NULL on error, * Buffer should be freed when finished with. */ FLAC__byte *FLAC__metadata_to_stream (FLAC__StreamMetaData *metadata); /* * Parses a metadata header byte stream and populates the passed * 'metadata' structure. If 'header_size' is not NULL then the size of * the parsed header is stored there. * * Returns: TRUE on success, FALSE if metadata_stream does not contain a * valid metadata header. */ FLAC__bool FLAC__metadata_parse_stream (FLAC__byte *metadata_stream, FLAC__StreamMetaData *metadata, unsigned *header_s...
2006 May 22
1
beta8: cores on corrupted index file
..._sync_commit+184>, lookup_ext_full = 0, get_header_ext = 0xbde9c}, index = 0xbc460, log_view = 0x0, indexid = 4, map = 0xbde9c, sync_new_map = 0xbcb18, map_refs = {buffer = 0xbdeb4, element_size = 757560}, hdr = {major_version = 0 '\0', minor_version = 12 '\f', base_header_size = 15224, header_size = 801664, record_size = 753608, compat_flags = 68 'D', unused = "o??", indexid = 1, flags = 0, uid_validity = 0, next_uid = 771168, messages_count = 582656, recent_messages_count = 582656, seen_messages_count = 0, deleted_messages_count = 77122...
2011 Apr 20
1
CELT in ffmpeg and API questions
...rn celt_int32 celt_bitstream_version; or, even better: int celt_bitstream_version_supported(celt_int32 version); Since dynamic linking is supported, a build-time constant is not suitable. Currently, I resorted to have libcelt generate a dummy header to get the version_id field. * The header_size is set to 56, while the header is actually 60 bytes. Is it normal? * It seems that the celt_*_destroy all accept NULL without choking, just like libc's free. If this is on purpose, could it be stated in the documentation? Regards, -- Nicolas George -------------- next part -------...
2005 Dec 14
0
Assertion Failure in Current CVS Version
...808d9a0 <_view_lookup_ext_full>, get_header_ext = 0x808e140 <_view_get_header_ext>}, index = 0x80ce000, log_view = 0x80e2e58, indexid = 1122493952, map = 0x80cf020, new_map = 0x0, map_refs = 0x0, hdr = {major_version = 7 '\a', minor_version = 0 '\0', base_header_size = 120, header_size = 200, record_size = 40, compat_data = "\001\b\004", indexid = 1122493952, flags = 0, uid_validity = 1130429256, next_uid = 5142, messages_count = 1913, recent_messages_count = 0, seen_messages_count = 1452, deleted_messages_count = 0, first_recent_u...
2003 Apr 21
1
Using on AIX
Hi, I'm trying to install dovecot-0.99.9-test6 with gcc-3.2.2 under AIX (4.3.3) and found some problems. First, I need to define _XOPEN_SOURCE_EXTENDED to 1 in src/lib/fdpass.c and src/auth/mycrypt.c or undefine it to compile successfully. When I define _XOPEN_SOURCE_EXTENDED to 1, I get the following error while connecting: dovecot: Apr 21 17:56:44 Info: Dovecot starting up imap-login:
2019 Feb 19
0
[PATCH nbdkit 1/4] common: Move some GPT functionality to a common directory.
...LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef NBDKIT_GPT_H +#define NBDKIT_GPT_H + +struct gpt_header { + char signature[8]; + char revision[4]; + uint32_t header_size; + uint32_t crc; + uint32_t reserved; + uint64_t current_lba; + uint64_t backup_lba; + uint64_t first_usable_lba; + uint64_t last_usable_lba; + char guid[16]; + uint64_t partition_entries_lba; + uint32_t nr_partition_entries; + uint32_t size_partition_entry; + uint32_t crc_partitions; +}...
2008 Aug 29
1
Dovecot-1.1.2 assertion failure in preparsed_parse_next_header_init
...x0, skip = 0, last_chr = 0 '\0', want_count = 0, hdr_parser_ctx = 0x0, parse_next_block = 0x80cc1e0 <preparsed_parse_next_header_init>, part_seen_content_type = 0, broken = 1} (gdb) p *ctx->part $5 = {parent = 0x812e778, next = 0x0, children = 0x0, physical_pos = 688, header_size = {physical_size = 90, virtual_size = 93, lines = 0}, body_size = {physical_size = 505, virtual_size = 514, lines = 9}, flags = 72, context = 0x0} (gdb) p *ctx->input $6 = {v_offset = 759, stream_errno = 0, mmaped = 0, blocking = 1, closed = 0, seekable = 1, eof = 0, real_stream = 0x8...