Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge git://git.samba.org/sfrench/cifs-2.6

Pull cifs fixes from Steve French.

* git://git.samba.org/sfrench/cifs-2.6:
cifs: when server doesn't set CAP_LARGE_READ_X, cap default rsize at MaxBufferSize
cifs: fix parsing of password mount option

+20 -21
+20 -21
fs/cifs/connect.c
··· 1653 1653 * If yes, we have encountered a double deliminator 1654 1654 * reset the NULL character to the deliminator 1655 1655 */ 1656 - if (tmp_end < end && tmp_end[1] == delim) 1656 + if (tmp_end < end && tmp_end[1] == delim) { 1657 1657 tmp_end[0] = delim; 1658 1658 1659 - /* Keep iterating until we get to a single deliminator 1660 - * OR the end 1661 - */ 1662 - while ((tmp_end = strchr(tmp_end, delim)) != NULL && 1663 - (tmp_end[1] == delim)) { 1664 - tmp_end = (char *) &tmp_end[2]; 1665 - } 1659 + /* Keep iterating until we get to a single 1660 + * deliminator OR the end 1661 + */ 1662 + while ((tmp_end = strchr(tmp_end, delim)) 1663 + != NULL && (tmp_end[1] == delim)) { 1664 + tmp_end = (char *) &tmp_end[2]; 1665 + } 1666 1666 1667 - /* Reset var options to point to next element */ 1668 - if (tmp_end) { 1669 - tmp_end[0] = '\0'; 1670 - options = (char *) &tmp_end[1]; 1671 - } else 1672 - /* Reached the end of the mount option string */ 1673 - options = end; 1667 + /* Reset var options to point to next element */ 1668 + if (tmp_end) { 1669 + tmp_end[0] = '\0'; 1670 + options = (char *) &tmp_end[1]; 1671 + } else 1672 + /* Reached the end of the mount option 1673 + * string */ 1674 + options = end; 1675 + } 1674 1676 1675 1677 /* Now build new password string */ 1676 1678 temp_len = strlen(value); ··· 3495 3493 * MS-CIFS indicates that servers are only limited by the client's 3496 3494 * bufsize for reads, testing against win98se shows that it throws 3497 3495 * INVALID_PARAMETER errors if you try to request too large a read. 3496 + * OS/2 just sends back short reads. 3498 3497 * 3499 - * If the server advertises a MaxBufferSize of less than one page, 3500 - * assume that it also can't satisfy reads larger than that either. 3501 - * 3502 - * FIXME: Is there a better heuristic for this? 3498 + * If the server doesn't advertise CAP_LARGE_READ_X, then assume that 3499 + * it can't handle a read request larger than its MaxBufferSize either. 3503 3500 */ 3504 3501 if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_READ_CAP)) 3505 3502 defsize = CIFS_DEFAULT_IOSIZE; 3506 3503 else if (server->capabilities & CAP_LARGE_READ_X) 3507 3504 defsize = CIFS_DEFAULT_NON_POSIX_RSIZE; 3508 - else if (server->maxBuf >= PAGE_CACHE_SIZE) 3509 - defsize = CIFSMaxBufSize; 3510 3505 else 3511 3506 defsize = server->maxBuf - sizeof(READ_RSP); 3512 3507