LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 05-05-2008, 07:24 AM   #1
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
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?
 
Old 05-05-2008, 09:58 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
No, because as you said, Windows is not case sensitive. No matter what case you use in the filename, Windows will treat it the same.
 
Old 05-07-2008, 07:04 AM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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.
 
Old 05-07-2008, 11:51 AM   #4
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Simon Bridge View Post
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.
 
Old 05-07-2008, 07:03 PM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by SlowCoder View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Linux case insensitive filename john_boys Linux - Desktop 5 03-29-2008 08:17 AM
Can anyone solve this Case-Sensitive problem on Linux OS? yuvanth Linux - General 1 09-12-2007 06:17 AM
Case-insensitive CVS? sundialsvcs Programming 2 06-25-2006 10:01 AM
Linux case sensitive does not treat! mehjabin_25 Linux - Newbie 4 01-04-2006 07:53 AM
Why is linux case sensitive? Jestrik Linux - General 9 12-16-2003 07:05 AM


All times are GMT -5. The time now is 09:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration