Copying files from case-sensitive Linux to case-insensitive Windows via CIFS?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Copying files from case-sensitive Linux to case-insensitive Windows via CIFS?
As we all know, Linux is case sensitive, so the file A.txt is different from a.txt. However, in Windows, A.txt and a.txt are the same. So, when I copy a file from Linux to Windows via CIFS, what is the outcome? Are there any scenarios where this could cause file system corruption on the Windows side?
It is possible that myfile will overwrite MyFile at the windows end..
In the event that a linux cifs-shared directory contains two file that differ as above, the windows host will display their names correctly. When you try to copy the second to the same directory as you copieh the first - now they have to obey the rules of the windows native file-system... you'll either got a warning or the second file will get renamed.
In Windows, it is possible to have two files with the same nome in different directories. What happens if you try to copy them both to the same directory?
OT: There is a user wanting to contact slowcoder
Please visit this thred. Concerns possible license ambiguity in code written for iPodLinux.
It is possible that myfile will overwrite MyFile at the windows end..
In the event that a linux cifs-shared directory contains two file that differ as above, the windows host will display their names correctly. When you try to copy the second to the same directory as you copieh the first - now they have to obey the rules of the windows native file-system... you'll either got a warning or the second file will get renamed.
In Windows, it is possible to have two files with the same nome in different directories. What happens if you try to copy them both to the same directory?
OT: There is a user wanting to contact slowcoder
Please visit this thred. Concerns possible license ambiguity in code written for iPodLinux.
Right. I understand how the Windows file system works. What I wasn't sure about was the correlation between Linux's CIFS and Windows file sharing. As in, maybe there is a miscommunication between the two. I had an incident where 2 similarly named files were copied through CIFS from Linux to Windows, and the Windows file system corrupted. I was thinking it's just an isolated corruption, but was trying to determine what the cause was.
P.S. I responded to the other thread referring to ipodlinux. Wrong SlowCoder; I apparently have multiple personalities . But thanks for letting me know.
Right. I understand how the Windows file system works. What I wasn't sure about was the correlation between Linux's CIFS and Windows file sharing. As in, maybe there is a miscommunication between the two. I had an incident where 2 similarly named files were copied through CIFS from Linux to Windows, and the Windows file system corrupted. I was thinking it's just an isolated corruption, but was trying to determine what the cause was.
The corruption would be unrelated. (If this behavior actually did corrupt the fs, then Windows is even worse than everybody already thinks...)
Quote:
P.S. I responded to the other thread referring to ipodlinux. Wrong SlowCoder; I apparently have multiple personalities . But thanks for letting me know.
No worries - obviously your evil twin: you would never leave a license ambiguous
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.