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
···16531653 * If yes, we have encountered a double deliminator16541654 * reset the NULL character to the deliminator16551655 */16561656- if (tmp_end < end && tmp_end[1] == delim)16561656+ if (tmp_end < end && tmp_end[1] == delim) {16571657 tmp_end[0] = delim;1658165816591659- /* Keep iterating until we get to a single deliminator16601660- * OR the end16611661- */16621662- while ((tmp_end = strchr(tmp_end, delim)) != NULL &&16631663- (tmp_end[1] == delim)) {16641664- tmp_end = (char *) &tmp_end[2];16651665- }16591659+ /* Keep iterating until we get to a single16601660+ * deliminator OR the end16611661+ */16621662+ while ((tmp_end = strchr(tmp_end, delim))16631663+ != NULL && (tmp_end[1] == delim)) {16641664+ tmp_end = (char *) &tmp_end[2];16651665+ }1666166616671667- /* Reset var options to point to next element */16681668- if (tmp_end) {16691669- tmp_end[0] = '\0';16701670- options = (char *) &tmp_end[1];16711671- } else16721672- /* Reached the end of the mount option string */16731673- options = end;16671667+ /* Reset var options to point to next element */16681668+ if (tmp_end) {16691669+ tmp_end[0] = '\0';16701670+ options = (char *) &tmp_end[1];16711671+ } else16721672+ /* Reached the end of the mount option16731673+ * string */16741674+ options = end;16751675+ }1674167616751677 /* Now build new password string */16761678 temp_len = strlen(value);···34953493 * MS-CIFS indicates that servers are only limited by the client's34963494 * bufsize for reads, testing against win98se shows that it throws34973495 * INVALID_PARAMETER errors if you try to request too large a read.34963496+ * OS/2 just sends back short reads.34983497 *34993499- * If the server advertises a MaxBufferSize of less than one page,35003500- * assume that it also can't satisfy reads larger than that either.35013501- *35023502- * FIXME: Is there a better heuristic for this?34983498+ * If the server doesn't advertise CAP_LARGE_READ_X, then assume that34993499+ * it can't handle a read request larger than its MaxBufferSize either.35033500 */35043501 if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_READ_CAP))35053502 defsize = CIFS_DEFAULT_IOSIZE;35063503 else if (server->capabilities & CAP_LARGE_READ_X)35073504 defsize = CIFS_DEFAULT_NON_POSIX_RSIZE;35083508- else if (server->maxBuf >= PAGE_CACHE_SIZE)35093509- defsize = CIFSMaxBufSize;35103505 else35113506 defsize = server->maxBuf - sizeof(READ_RSP);35123507