STATUS_FILE_RENAMED

if a file is set for rename, i will read and modify it at cleanup. for local
files this is ok if i read from cache. however, for remote files (which i
handled w/o caching) i get the STATUS_FILE_RENAMED error when i tried to
read the file nocached. can anyone enlighten me on this? thanks!

Ho Mun Chuen
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein

I was bitten by this too. I don’t know WHY LanManager won’t allow access
to a renamed file handle, but that’s just the way it is. I solve it just
by re-opening the file, but in your case you can’t do this during a
cleanup (obviously). This is where you have to get creative.

  • Nicholas Ryan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ho Mun Chuen
Sent: Thursday, September 19, 2002 3:45 AM
To: File Systems Developers
Subject: [ntfsd] STATUS_FILE_RENAMED

if a file is set for rename, i will read and modify it at
cleanup. for local files this is ok if i read from cache.
however, for remote files (which i handled w/o caching) i get
the STATUS_FILE_RENAMED error when i tried to read the file
nocached. can anyone enlighten me on this? thanks!

Ho Mun Chuen
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein


You are currently subscribed to ntfsd as: xxxxx@nryan.com
To unsubscribe send a blank email to %%email.unsub%%

thanks. actually i was already intending to re-open the file again. isn’t it
possible if i roll my own create?

Ho Mun Chuen
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein
----- Original Message -----
From: “Nicholas Ryan”
To: “File Systems Developers”
Sent: Friday, September 20, 2002 1:31 AM
Subject: [ntfsd] RE: STATUS_FILE_RENAMED

I was bitten by this too. I don’t know WHY LanManager won’t allow access
to a renamed file handle, but that’s just the way it is. I solve it just
by re-opening the file, but in your case you can’t do this during a
cleanup (obviously). This is where you have to get creative.

- Nicholas Ryan

> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Ho Mun Chuen
> Sent: Thursday, September 19, 2002 3:45 AM
> To: File Systems Developers
> Subject: [ntfsd] STATUS_FILE_RENAMED
>
>
> if a file is set for rename, i will read and modify it at
> cleanup. for local files this is ok if i read from cache.
> however, for remote files (which i handled w/o caching) i get
> the STATUS_FILE_RENAMED error when i tried to read the file
> nocached. can anyone enlighten me on this? thanks!
>
> Ho Mun Chuen
> @@ “Not everything that counts can be counted;
> <” )~ and not everything that can be counted counts"
> //\ … Albert Einstein
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nryan.com
> To unsubscribe send a blank email to %%email.unsub%%
>


You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
To unsubscribe send a blank email to %%email.unsub%%

What I suggest you do is flush the file’s cache during cleanup, which
will force the close to come down quicky. Then when you see the close,
schedule a task to a worker thread. In your task, ZwCreate the file and
perform whatever post-processing you need to do. Trying to perform any
I/O in your cleanup/close handlers is in general a bad idea.

  • Nicholas Ryan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ho Mun Chuen
Sent: Thursday, September 19, 2002 6:11 PM
To: File Systems Developers
Subject: [ntfsd] RE: STATUS_FILE_RENAMED

thanks. actually i was already intending to re-open the file
again. isn’t it possible if i roll my own create?

Ho Mun Chuen
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein
----- Original Message -----
From: “Nicholas Ryan”
> To: “File Systems Developers”
> Sent: Friday, September 20, 2002 1:31 AM
> Subject: [ntfsd] RE: STATUS_FILE_RENAMED
>
>
> I was bitten by this too. I don’t know WHY LanManager won’t
> allow access to a renamed file handle, but that’s just the
> way it is. I solve it just by re-opening the file, but in
> your case you can’t do this during a cleanup (obviously).
> This is where you have to get creative.
>
> - Nicholas Ryan
>
>
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Ho Mun Chuen
> > Sent: Thursday, September 19, 2002 3:45 AM
> > To: File Systems Developers
> > Subject: [ntfsd] STATUS_FILE_RENAMED
> >
> >
> > if a file is set for rename, i will read and modify it at
> cleanup. for
> > local files this is ok if i read from cache. however, for
> remote files
> > (which i handled w/o caching) i get the STATUS_FILE_RENAMED
> error when
> > i tried to read the file nocached. can anyone enlighten me on this?
> > thanks!
> >
> > Ho Mun Chuen
> > @@ “Not everything that counts can be counted;
> > <” )~ and not everything that can be counted counts"
> > //\ … Albert Einstein
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@nryan.com
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@pmail.ntu.edu.sg To unsubscribe send a blank email to
> %%email.unsub%%
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nryan.com
> To unsubscribe send a blank email to %%email.unsub%%
>