search for: bytecount

Displaying 20 results from an estimated 70 matches for "bytecount".

2011 Jun 29
5
Enhance sftp protocol: get SHA hash of file
...) from a file or part of a file. This would make it possible to run a rsync like file transfer on sftp. I would suggest a protocol like this Client sends to Server: get-supported hash-methods returns whitespace seperated list like md5 sha1 sha256 .... get-hash HASH-METHOD FILENAME STARTOFFSET BYTECOUNT returns: hexlified hash value (all lowercase) To get the hash value of the whole file: STARTOFFSET=0 and BYTECOUNT=0 Anyone interested? Thomas G?ttler
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
..._LDT(); - if (mm->context.size*LDT_ENTRY_SIZE > PAGE_SIZE) - vfree(mm->context.ldt); - else - kfree(mm->context.ldt); - mm->context.size = 0; - } + if (unlikely(mm->context.ldt)) + destroy_ldt(&mm->context); } static int read_ldt(void __user * ptr, unsigned long bytecount) { int err; unsigned long size; - struct mm_struct * mm = current->mm; + mm_context_t *pc = &current->mm->context; - if (!mm->context.size) + if (!pc->ldt_pages) return 0; if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; - do...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
..._LDT(); - if (mm->context.size*LDT_ENTRY_SIZE > PAGE_SIZE) - vfree(mm->context.ldt); - else - kfree(mm->context.ldt); - mm->context.size = 0; - } + if (unlikely(mm->context.ldt)) + destroy_ldt(&mm->context); } static int read_ldt(void __user * ptr, unsigned long bytecount) { int err; unsigned long size; - struct mm_struct * mm = current->mm; + mm_context_t *pc = &current->mm->context; - if (!mm->context.size) + if (!pc->ldt_pages) return 0; if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; - do...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...> + ClearPagesLDT(mm->context.ldt, pages); > + if (pages > 1) > vfree(mm->context.ldt); > else > kfree(mm->context.ldt); > - mm->context.size = 0; > + mm->context.ldt_pages = 0; > } > > static int read_ldt(void __user * ptr, unsigned long bytecount) > @@ -113,13 +114,13 @@ > unsigned long size; > struct mm_struct * mm = current->mm; > > - if (!mm->context.size) > + if (!mm->context.ldt_pages) > return 0; > if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) > bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES;...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...> + ClearPagesLDT(mm->context.ldt, pages); > + if (pages > 1) > vfree(mm->context.ldt); > else > kfree(mm->context.ldt); > - mm->context.size = 0; > + mm->context.ldt_pages = 0; > } > > static int read_ldt(void __user * ptr, unsigned long bytecount) > @@ -113,13 +114,13 @@ > unsigned long size; > struct mm_struct * mm = current->mm; > > - if (!mm->context.size) > + if (!mm->context.ldt_pages) > return 0; > if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) > bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES;...
2012 May 07
2
Compile Error
...here, File "../ocaml/guestfs.ml", line 1, characters 0-1: Error: The implementation ../ocaml/guestfs.ml does not match the interface ../ocaml/guestfs.cmi: Values do not match: external mkfs_btrfs : t -> ?allocstart:int64 -> ?bytecount:int64 -> ?datatype:string -> ?leafsize:int -> ?label:string -> ?metadata:string -> ?nodesize:int -> ?sectorsize:int -> string array -> unit = "ocaml_guestfs_mkfs_btrfs_byte" "ocaml_guestfs_mkfs_...
2012 Apr 02
2
[PATCH 0/2] Fix btrfs blocksize and bind mkfs.btrfs (RHBZ#807905).
https://bugzilla.redhat.com/show_bug.cgi?id=807905 Currently if you specify the blocksize parameter to mkfs-opts with a btrfs filesystem, then it fails, because mkfs.btrfs interprets the -b option as meaning filesystem size. The first patch fixes this by disallowing blocksize (it cannot be mapped meaningfully into btrfs parameters). The second patch adds the full /sbin/mkfs.btrfs utility to the
2019 Jan 14
0
SMB3.11 and receiving NT_STATUS_SMB_BAD_CLUSTER_DIALECT
...ater than MaxClusterDialect and SMB2_TREE_CONNECT_FLAG_CLUSTER_RECONNECT is not set in Flags/Reserved field, the server MUST fail the request with STATUS_SMB_BAD_CLUSTER_DIALECT (0xC05D0001) and if Connection.Dialect is SMB 3.1.1, the server MUST return error data as specified in section 2.2.2 with ByteCount set to 10, ErrorContextCount set to 1, and ErrorData set to SMB2 ERROR Context response formatted as ErrorDataLength set to 2, ErrorId set to 0, and ErrorData set to MaxClusterDialect; otherwise, the server MUST return error data as specified in section 2.2.2 with ByteCount set to 2 and ErrorContex...
2013 Dec 06
0
[Patch v2] xen/tmem: Fix uses of unmatched __map_domain_page()
...iling zeroes and * rounded up to the nearest multiple of 8 */ static inline pagesize_t tmem_tze_pfp_scan(struct page_info *pfp) { - const uint64_t *p = (uint64_t *)__map_domain_page(pfp); + const uint64_t *const page = __map_domain_page(pfp); + const uint64_t *p = page; pagesize_t bytecount = PAGE_SIZE; pagesize_t len = PAGE_SIZE/sizeof(uint64_t); + p += len; while ( len-- && !*--p ) bytecount -= sizeof(uint64_t); + + unmap_domain_page(page); + return bytecount; } static inline void tmem_tze_copy_from_pfp(void *tva, struct page_info *pfp, pa...
2010 Sep 23
3
[PATCH 1/1] Rename camel case variables in channel.c (updated)
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...
2010 Sep 23
3
[PATCH 1/1] Rename camel case variables in channel.c (updated)
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...
2004 Feb 12
1
SMBMount Not Recognizing File Locks
...to an archive location. If the file is still being written to or being copied from another location on the network, my process does not recognize it and assumes that the file is ready for processing. This results in corruption, failures, etc... I've tried using 'stat' to monitor the bytecount, but in the event an NT file copy process is copying the file to this mounted location, 'stat' shows the "final" bytecount, as if the file has already been completely written. I've tried opening the file exclusively, expecting to receive a failure or timeout, but for some rea...
2010 Sep 30
2
[PATCH 1/1] staging: hv: Remove camel case variables in channel.c
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...
2010 Sep 30
2
[PATCH 1/1] staging: hv: Remove camel case variables in channel.c
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...
2011 Jan 26
8
[PATCH 1/8] staging: hv: Convert camel cased variables in connection.c to lower cases
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at microsoft.com> --- drivers/staging/hv/channel.c | 48 ++++++------ drivers/staging/hv/channel_mgmt.c | 48 ++++++------ drivers/staging/hv/connection.c | 154 ++++++++++++++++++------------------ drivers/staging/hv/vmbus_drv.c | 2 +-
2011 Jan 26
8
[PATCH 1/8] staging: hv: Convert camel cased variables in connection.c to lower cases
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at microsoft.com> --- drivers/staging/hv/channel.c | 48 ++++++------ drivers/staging/hv/channel_mgmt.c | 48 ++++++------ drivers/staging/hv/connection.c | 154 ++++++++++++++++++------------------ drivers/staging/hv/vmbus_drv.c | 2 +-
2010 Sep 23
1
[PATCH 1/1] Rename camel case variables in channel.c
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...
2010 Sep 23
1
[PATCH 1/1] Rename camel case variables in channel.c
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...
2017 Jun 21
2
samba 4.4.14 breaks classic domain
...: SMB: - Tree ID (TID) = 0x0000 SMB: - Process ID (PID) = 0xfffe SMB: - User ID (UID) = 0x0000 SMB: - Multiplex ID (MID) = 0x0000 SMB: - Flags summary = 0x18 SMB: - Flags2 summary = 0xc843 SMB: SMB: ByteCount = 49 SMB: Dialect String = NT LANMAN 1.0 SMB: Dialect String = NT LM 0.12 SMB: Dialect String = SMB 2.002 SMB: Dialect String = SMB 2.??? SMB: On the working member server, the packet capture included a lot of "SMB" traffic. With the proble...
2010 Sep 20
1
[PATCH 2/2] staging: hv: Remove camel cases from vmbus channel functions
...int i, j; - int pageCount; + int pagecount; DPRINT_DBG(VMBUS, "gpadl header - relid %d, range count %d, range buflen %d", - Gpadl->ChildRelId, Gpadl->RangeCount, Gpadl->RangeBufLen); - for (i = 0; i < Gpadl->RangeCount; i++) { - pageCount = Gpadl->Range[i].ByteCount >> PAGE_SHIFT; - pageCount = (pageCount > 26) ? 26 : pageCount; + gpadl->ChildRelId, gpadl->RangeCount, gpadl->RangeBufLen); + for (i = 0; i < gpadl->RangeCount; i++) { + pagecount = gpadl->Range[i].ByteCount >> PAGE_SHIFT; + pagecount = (pagecount > 26) ?...