CIFS for Solaris: A new protocol, a new world


CIFS/SMB is not a new protocol, it's not new in Solaris either but ...

If you want to visit another world and trade with its inhabitants, having good products to trade most likely wouldn't be enough because they wouldn't understand what you are trying to achieve. Both the inability to communicate and huge cultural differences would be an enormous barrier. In order to initiate the relationship you need to know how to communicate and speak their language, which may be accomplished through a translator or by learning the language yourself. Learning the language yourself is a lot harder but, ultimately, it's a lot more efficient.

Solaris has a lot of great features to offer but it couldn't interoperate directly with the Windows world because it didn't know how to speak CIFS, one of the official communication languages of the Windows world. There have been a few translators over the years, including Samba, which is a really good CIFS communicator, but it was time for Solaris to learn how to speak CIFS. Learning a foreign language can be hard but learning to communicate with another world can be very, very hard, and for Solaris, some intrusive brain surgery was required to attach a CIFS speech center.

When trying to communicate with other people one of the first things you need to know is how to identify and call those people. User identity in the Solaris world is quite different from those of the Windows world. In the UNIX world people from different cities can have similar identities and, even though they are different individuals, they can be mistaken for one another. In the Windows world no two people can have the same identity, no matter where they live. This identity problem was solved by PSARC 2007/064, which allows various parts of the operating system to deal with Windows style identities.  For example, ZFS now understands Windows style identities (SIDs), in addition to other enhancements including Windows style ACLs, DOS attributes, and mixed and case-insensitive operations.

One of the design goals was to limit the ripple effects of such changes and it was important that applications and services that don't need to know about Windows identities remained unaffected. This is supported by the identity mapping service, which was discussed recently here. Some of the more intrusive changes were to the VFS to add feature registration, new parameters and new features, such as PSARC 2007/218 and PSARC 2007/227.  This was intrusive because, although it didn't materially affect the operating system architecture, the ripple effects touched every file system.

So now Solaris can speak CIFS almost fluently, without the help of a translator. Perhaps not completely without an accent, and people from the Windows world might recognize that we are a foreigner, but that's a work in progress and we're getting better by the day.

Comments:

Congratulations! Working inside the kernel always fascinates me and I can imagine how much effort and energy you guys must have put into getting this "surgery" done. More power to you!

Posted by Nasser on November 12, 2007 at 11:03 AM PST #

maa ke nafahmidim, vali maloome ke damet kheili garme. Shoma az iranihaye movaffagh hastin.

Posted by mahdieh on November 12, 2007 at 03:16 PM PST #

Thanks for your information, i have read it, very good!

Posted by cheap ed hardy on November 01, 2009 at 08:28 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Afshin Salek

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Feeds