[cifs-protocol] Linux: want to cache CIFS file in local file cache

2011-05-23 Thread Aaron Boxer
Hello!

I am writing a Linux server, and I want to pre-fetch a number of CIFS files
and cache locally. The files are on a CIFS share mounted as read only.

I was planning on opening the file, calling
posix_fadvise(,POSIX_FADV_WILLNEED)
on the file descriptor, and then closing the file.

Will this work? Is there a better way of doing this?

Thanks!!

Aaron
___
cifs-protocol mailing list
cifs-protocol@cifs.org
https://lists.samba.org/mailman/listinfo/cifs-protocol


Re: [cifs-protocol] [Pfif] [REG:110011477385004] RE: userParameters attribute

2011-05-23 Thread Hongwei Sun
Andrew,

  The request opened is still pending.  I will follow up with the corresponding 
product teams.  I will keep you posted.

Thanks!

Hongwei


-Original Message-
From: Andrew Bartlett [mailto:abart...@samba.org] 
Sent: Sunday, May 22, 2011 10:50 PM
To: Hongwei Sun
Cc: p...@tridgell.net; cifs-proto...@samba.org; Obaid Farooqi; MSSolve Case 
Email; Michael Ströder
Subject: Re: [Pfif] [cifs-protocol] [REG:110011477385004] RE: userParameters 
attribute

On Mon, 2010-06-21 at 22:54 +, Hongwei Sun wrote:
> Andrew,
> 
>   Sorry about the delay to give you a confirmation.  We have been spending 
> time to review the usage of UserParameters in other Windows components based 
> on the information you provided.   We found that this attribute is indeed 
> still used by at least one other Microsoft product, such as RAS Server.  The 
> related product team is working on this to find how to document it.  During 
> my vacation, I will ask one of my team member (Obaid) to monitor the progress 
> and send you the update when it is available.

Out of pure curiosity, did this ever turn into documentation?

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


___
cifs-protocol mailing list
cifs-protocol@cifs.org
https://lists.samba.org/mailman/listinfo/cifs-protocol


Re: [cifs-protocol] userParameters attribute

2011-05-23 Thread Hongwei Sun
metze,

  I will check it and let you know.

Thanks!

Hongwei
   

-Original Message-
From: Stefan (metze) Metzmacher [mailto:me...@samba.org] 
Sent: Sunday, May 22, 2011 11:58 PM
To: Andrew Bartlett
Cc: Hongwei Sun; MSSolve Case Email; p...@tridgell.net; 
cifs-proto...@samba.org; Obaid Farooqi; Michael Ströder
Subject: Re: [Pfif] [cifs-protocol] [REG:110011477385004] RE: userParameters 
attribute

Am 23.05.2011 05:50, schrieb Andrew Bartlett:
> On Mon, 2010-06-21 at 22:54 +, Hongwei Sun wrote:
>> Andrew,
>>
>>   Sorry about the delay to give you a confirmation.  We have been spending 
>> time to review the usage of UserParameters in other Windows components based 
>> on the information you provided.   We found that this attribute is indeed 
>> still used by at least one other Microsoft product, such as RAS Server.  The 
>> related product team is working on this to find how to document it.  During 
>> my vacation, I will ask one of my team member (Obaid) to monitor the 
>> progress and send you the update when it is available.
> 
> Out of pure curiosity, did this ever turn into documentation?

BTW: is it documented that the userParameters attribute is stored as
utf8 string, while
the samr interface uses UTF16? See
https://bugzilla.samba.org/show_bug.cgi?id=8077
(I haven't uploaded examples, but I plan to do so in the next weeks)

metze

___
cifs-protocol mailing list
cifs-protocol@cifs.org
https://lists.samba.org/mailman/listinfo/cifs-protocol