Opened 10 years ago
#14169 new defect
vboxsf: files with illegal (:) characters truncated on host's NTFS shared folder / results in data loss
Reported by: | baitisj | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 4.3.28 |
Keywords: | illegal filename truncation zero bytes | Cc: | |
Guest type: | Linux | Host type: | Windows |
Description
Moving a file from a Linux guest filesystem that is tolerant of e.g. the colon character (:) in a filename, to a Windows-hosted NTFS filesystem using vboxsf results in truncation (DATA LOSS) and odd naming behavior.
Steps to reproduce:
- Create a file on a Linux filesystem in a guest; e.g.
# dd if=/dev/random of='/tmp/1mega:byte' bs=1M count=1
- Mount NTFS shared folder:
# mount -t vboxsf SHARE /mnt
- Move file to vboxsf shared filesystem
# mv '/tmp/1mega:byte' /mnt
RESULT:
a file in /mnt of zero size and truncated filename
# du /mnt/1mega 0 /mnt/1mega # du '/tmp/1mega:byte' du: cannot access '/tmp/1mega:byte': no such file or directory
EXPECTED RESULT:
An error that does not result in the truncation of the /tmp/1mega:byte file in the above example OR a renaming of the file in /mnt, along with preservation of the contents of the file.
Note:
See TracTickets
for help on using tickets.