Re: RDR bug?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Wow... so, this was due to batch oplock... yes, looks like this is an SMB
or CDFS bug in Windows, the batch oplocks must be torn on removable media
changes.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"Andrew" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%231QTLQTeGHA.3572@xxxxxxxxxxxxxxxxxxxxxxx
Yet another description of the problem:

http://groups.google.co.nz/group/microsoft.public.win32.programmer.networks/browse_frm/thread/72772cb385ab5324/0ad1cc57948dbf34?lnk=st&q=(redirector+OR+rdr)+(error_wrong_disk)&rnum=1&hl=en#0ad1cc57948dbf34

I have a working solution with a driver on the server that filters CDFS and
denies any oplocks. I need to update the driver, and I hope there's an
easier solution to the problem so that I could remove the FS filter. I hope
Microsoft guys having access to the source code can tell me how I can force
RDR to forget about a file on an ejected CD.


--

"Andrew" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eTcob2SeGHA.3484@xxxxxxxxxxxxxxxxxxxxxxx
The scenario:

1) Two different CDs with different \autorun.inf on them. In other words,
the file names are the same, the content differ.
2) Two PCs in a LAN, the server and client
3) The CD drive on the server is shared; it's just a normal share with
default settings.
4) Insert CD1 on the server.
5) Open and read \\Share\CD\autorun.inf on the client. All is OK.
6) Eject CD1, insert CD2.
7) Open and read \\Share\CD\autorun.inf. Now either CreateFile() fails
with Win32 error 34 (ERROR_WRONG _DISK), or ReadFile() returns the old
content from CD1. I can open all other files just fine, but not the files
with the same name which were opened previously. Say, if I have \setup.exe
on both CD1 and CD2, but I didn't open setup.exe at step 5, I can access
CD2's setup.exe on step 7.

How can flush the RDR cache on the client programmatically, instead of
having to reboot the server or recreate the share every time? Thanks.


A.








.



Relevant Pages

  • Re: Unable to establish TRUST
    ... Windows 2000 Server media (CD1) from SBS 2000. ...
    (microsoft.public.win2000.active_directory)
  • Re: Offline Status issue - Vista on SBS 2003
    ... Lanmanworkstation just to be safe...neither the server nor the laptop ... connection to the server using a gigabit ethernet cable, ... Specifies whether the server allows clients to use oplocks on files. ... lost cached data on some networks, ...
    (microsoft.public.windows.server.sbs)
  • [SLE] SuSE 9.0 pro crashing
    ... and all partitions are Ext3 and I'm using ACL's. ... (I'm currently migrating this to the server). ... I stopped the backup, ... level2 oplocks = no ...
    (SuSE)
  • Re: Advanced Server: file locking
    ... Advanced Server's support of Opprotunistic Locking (OpLocks). ... best thought of as client side caching. ... on ther server becuase it has that exclusive OpLock. ... support OpLocks, it simply responds to the client that it is not supported, ...
    (comp.os.vms)
  • Re: RDR bug?
    ... Two different CDs with different \autorun.inf on them. ... Two PCs in a LAN, the server and client ... Insert CD1 on the server. ...
    (microsoft.public.development.device.drivers)