Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2013 07:20:01 GMT
From:      "Ganael LAPLANCHE" <ganael.laplanche@martymac.org>
To:        freebsd-fs@FreeBSD.org
Subject:   Re: kern/112658: [smbfs] [patch] smbfs and caching problems (resolves bin/111004)
Message-ID:  <201302200720.r1K7K12t003696@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/112658; it has been noted by GNATS.

From: "Ganael LAPLANCHE" <ganael.laplanche@martymac.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/112658: [smbfs] [patch] smbfs and caching problems (resolves bin/111004)
Date: Wed, 20 Feb 2013 07:16:27 +0000 (UTC)

 This is a multi-part message in MIME format.
 
 ------=OPENWEBMAIL_ATT_0.350054851341159
 Content-Type: text/plain; charset=iso-8859-15
 
 Here is an updated version of the patch.
 It applies to svn revision 246938.
 
 --
 Ganael LAPLANCHE <ganael.laplanche@martymac.org>
 http://www.martymac.org | http://contribs.martymac.org
 FreeBSD: martymac <martymac@FreeBSD.org>, http://www.FreeBSD.org
 
 ------=OPENWEBMAIL_ATT_0.350054851341159
 Content-Type: text/plain;
 	name="patch-smbfs-svnrev-246938.txt"
 Content-Disposition: attachment; filename="patch-smbfs-svnrev-246938.txt"
 Content-Transfer-Encoding: base64
 
 ZGlmZiAtYXVyTiBzeXMvZnMvc21iZnMub3JpZy9zbWJmc19ub2RlLmMgc3lzL2ZzL3NtYmZzL3Nt
 YmZzX25vZGUuYwotLS0gc3lzL2ZzL3NtYmZzLm9yaWcvc21iZnNfbm9kZS5jCTIwMTItMTItMTQg
 MDk6NTk6MTEuNjgyNzQxMDAwICswMTAwCisrKyBzeXMvZnMvc21iZnMvc21iZnNfbm9kZS5jCTIw
 MTMtMDItMjAgMDY6MDA6MzcuNjUyNzk2MzA1ICswMTAwCkBAIC02NCw3ICs2NCw3IEBACiAJcmV0
 dXJuIChmbnZfMzJfYnVmKG5hbWUsIG5tbGVuLCBGTlYxXzMyX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NFU1MoZHZwLCBWV1JJVEUsIGNucC0+Y25fY3JlZCwgdGQpOwog
 CQlpZiAoZXJyb3IpCiAJCQlnb3RvIG91dDsKQEAgLTEyNzQsMTEgKzEyOTAsMTQgQEAKIAkJCWVy
 cm9yID0gdmZzX2J1c3kobXAsIDApOwogCQkJdm5fbG9jayhkdnAsIExLX0VYQ0xVU0lWRSB8IExL
 X1JFVFJZKTsKIAkJCXZmc19yZWwobXApOwotCQkJaWYgKGVycm9yKQotCQkJCXJldHVybiAoRU5P
 RU5UKTsKKwkJCWlmIChlcnJvcikgeworCQkJCWVycm9yID0gRU5PRU5UOworCQkJCWdvdG8gb3V0
 OworCQkJfQogCQkJaWYgKChkdnAtPnZfaWZsYWcgJiBWSV9ET09NRUQpICE9IDApIHsKIAkJCQl2
 ZnNfdW5idXN5KG1wKTsKLQkJCQlyZXR1cm4gKEVOT0VOVCk7CQorCQkJCWVycm9yID0gRU5PRU5U
 OworCQkJCWdvdG8gb3V0OwogCQkJfQogCQl9CQogCQlWT1BfVU5MT0NLKGR2cCwgMCk7CkBAIC0x
 MzA4LDYgKzEzMjcsOCBAQAogCQljYWNoZV9lbnRlcihkdnAsICp2cHAsIGNucCk7CiAJfQogb3V0
 OgorCWlmIChuYW1lICE9IGNucC0+Y25fbmFtZXB0cikKKwkJc21iZnNfbmFtZV9mcmVlKCh1X2No
 YXIgKiluYW1lKTsKIAlzbWJmc19mcmVlX3NjcmVkKHNjcmVkKTsKIAlyZXR1cm4gKGVycm9yKTsK
 IH0K
 
 ------=OPENWEBMAIL_ATT_0.350054851341159--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302200720.r1K7K12t003696>