Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Request help reproducing behaviour #530

Open
mdell-seradex opened this issue Jul 20, 2022 · 0 comments
Open

Request help reproducing behaviour #530

mdell-seradex opened this issue Jul 20, 2022 · 0 comments

Comments

@mdell-seradex
Copy link

I have been trying to write a routine to reproduce behaviour I have seen occur on several machines.
From what I can tell, it appears to be due to transactional NTFS, but I cannot seem to reproduce it.
The specific behaviour when a file is affected is this:

  1. I can move and rename the file without issues.
  2. If I attempt to delete the file, it appears to delete, but when I refresh the folder, it re-appears. After the attempted deletion, I cannot create a new file with the same name in that folder until after I reboot.

I have tried to create a Visual Studio solution using this library to use transactional NTFS on a specific file.
While the file is opened by my test application, I am unable to delete the file. Windows reports that it is locked by my app.
When the app closes the file, but the transaction has not been closed, I can immediately delete the file with no issues. It does not re-appear after a refresh.

Note that I have tried posting this to stack overflow, but have not received any responses that reproduce this behaviour.
https://stackoverflow.com/questions/72181020/how-to-simulate-a-specific-style-of-file-locking-where-file-deletes-appear-to-be
I don't do a lot on stack overflow, so I don't have hardly any reputation to offer as a bounty.

Maybe I am going down the wrong path. I know this isn't the best way to ask this, but I don't know a good avenue to do this.
I greatly appreciate any feedback you can provide.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant