Hi All,
Consider the scenario?
A process P1 successfully Opened a file lets say F1 for reading.
A process P2 called delete on file F1. Now Delete is successfully but it just marks the file as deleted but F1 exist. P1 continues to use F1 but any other process can not do any file operations on F1.
Now other process lets say P3 comes and try to rename a file F2 to F1. But it fails.
Is there any alternative for P3 to rename/move the file?
Thanks & Regards,
Amit.
One way will be to delay until reboot. But I don’t want to do so.
Can I do anything like delay until file is actually deleted? How?
NO WAY?? you must wait p1 exit.
2012/4/6
> One way will be to delay until reboot. But I don’t want to do so.
> Can I do anything like delay until file is actually deleted? How?
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
–
---- ------------------------
wusd,
---- ------------------------
Not quite true; you only have to wait for P1 to close its handle.
joe
NO WAY£¬ you must wait p1 exit.
2012/4/6
>
>> One way will be to delay until reboot. But I don’t want to do so.
>> Can I do anything like delay until file is actually deleted? How?
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
>
> –
> ---- ------------------------
> wusd,
> ---- ------------------------
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer