﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
9315,"File not being truncated on shared folder - WinXP 32 SP3 guest on WinXP 32 SP3 host, VBox 4.1.0+Guest Additions 4.1.0",DfDf,,"When a file on shared folder (for example - even a plain text) is being edited in Far (http://www.farmanager.com) and when tail of file (for ex. - 4-5 last lines) is being deleted, after that file is saved - the tail remains in file as it was not deleted.

Steps to reproduce:

1. Map a shared folder with full access and automount in guest OS.[[BR]]
2. Put a short (about 1K) plain text file to shared folder.[[BR]]
3. Download far manager from http://www.farmanager.com (open source).[[BR]]
4. Install FAR in guest OS.[[BR]]
5. Change to shared folder in guest OS via FAR. (Alt-F2)[[BR]]
6. Press F4 (edit) on file from step 2.[[BR]]
7. Remove several last lines (4-5) from the end of file (in any way - for ex. by Ctrl-Y).[[BR]]
8. Press F2 to save changes (or ESC, and than confirm save).[[BR]]
9. Quit editor by ESC.[[BR]]
10. Open file in host OS (or even again in guest OS) in notepad. Observe the BUG - deleted lines are still present in the file AND file size IS NOT CHANGED.[[BR]]

FAR uses this steps to write to file:

1. File is being read to memory, than closed.[[BR]]
2. User edit the file and presses F2 to write to file.[[BR]]
3. File is being reopened with write access.[[BR]]
4. File is truncated to '''0 bytes length'''.[[BR]]
5. Memory is being written back to file.[[BR]]

At this point if file resides on shared folder and edited from guest OS - the BUG arrives.
",defect,closed,shared folders,VirtualBox 4.1.0,duplicate,,,Windows,Windows
