CIFSD는 PS라고 치면 나온다.
물론 FC6 같이 CIFS가 커널에서 지원되지 않도록 컴파일 된녀석은 안나온다


# ps | grep cif
   72 root         0 SW<  [cifsoplockd]
   73 root         0 SW<  [cifsdnotifyd]
  667 root         0 SW<  [cifsd]

아무튼, 이녀석은 [cifsd] 라고 되어있듯 1000번 이하의 데몬이고,
커널이 띄우는 것으로 예상된다.

   - CIFS: Made cifsd (kernel daemon for the CIFS filesystem) suspend aware.

[링크 : http://www.novell.com/linux/security/advisories/2005_67_kernel.html]



---
2011.05.06 추가

Common Internet File System (CIFS)
CIFS는 마이크로소프트에 의해 개발되고 사용된 프로토콜인 SMB의 공개된 변종

[링크 :  http://www.terms.co.kr/CIFS.htm]
 

 In computer networkingServer Message Block (SMB), also known as Common Internet File System (CIFS) operates as an application-layer network protocol[1] mainly used to provide shared access to filesprintersserial ports, and miscellaneous communications between nodes on a network. It also provides an authenticated inter-process communication mechanism. Most usage of SMB involves computers running Microsoft Windows, where it was known as "Microsoft Windows Network" before the subsequent introduction of Active Directory.
 

[링크 :  http://en.wikipedia.org/wiki/Server_Message_Block]

Posted by 구차니
아무생각없이

mount -t cifs -o user=guest,password=guest 로 했더니

 CIFS VFS: Send error in SessSetup = -13
 CIFS VFS: Send error in SessSetup = -13
mount: mounting \\server\share on /mnt/samba failed: Permission denied

이런 에러가 발생한다.

아무튼 제어판 - 관리도구 - 컴퓨터 관리 에서 확인해보니

Guest User 등록 정보

Guest Group 등록 정보

아무튼 검색을 해보니, 기본적으로 윈도우 간에 파일 공유는 guest 로 로그인을 한다고 하는데,
윈도우 끼리는 접속이 되는데 삼바에서는 guest로 접속이 되지 않는다. 흐음.. 기본 암호가 다르게 쳐서 그런가?

아무튼 guest 대신에 임의의 아이디를 만들면 접속에 이상이 없다.
Posted by 구차니
Linux2009. 10. 14. 15:20
 CIFS: UNC Path does not begin with // or \\

execl("/bin/mount", "mount", "-t","cifs", resolv_urn, mount_point, "-o", option, NULL);

일단 resol_urn의 내용은
커맨드 라인상으로는

mount -t cifs //servernam/sharename 혹은
mount -t cifs "//servernam/share name" 혹은

으로 실행이 되는데, execl 에서

sprintf(resolv_urn, "\"//%s/%s\"", servername, sharename);
로 하니 위와 같은 에러가 난다.

곰곰히 생각해보니..

execl() 에서 인자로 넘기는 하나하나에는 공백이 들어가도 상관이 없다!!!
그게 무슨 말이냐면은, 공백까지 인식을 시키기 위해서 " "를 사용하는 것인데
execl() 자체에 들어가는 인자는 이러한 것을 인식한 것이기 때문에
굳이 \" \" 를 써가면서 문자열 내에 " "를 넣을 필요가 없는 것이다.

결론은
sprintf(resolv_urn, "//%s/%s", servername, sharename);
이런 식으로 urn을 입력해주면 상황끝!

'Linux' 카테고리의 다른 글

설치하지 않은 rpm에 포함된 파일의 내용 보기  (0) 2009.11.04
mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
gnash - GNU SWF player  (0) 2009.09.23
/ 는 root // 는?  (0) 2009.09.22
User Mode Linux - UML  (0) 2009.09.15
Posted by 구차니
Linux2009. 9. 11. 19:13
cat /proc/filesystems

proc 파일 시스템에
filesystems라는 파일에 사용가능한 FS-type이 있다고 한다.

]$ cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   cpuset
nodev   binfmt_misc
nodev   debugfs
nodev   securityfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   futexfs
nodev   tmpfs
nodev   inotifyfs
nodev   eventpollfs
nodev   devpts
        ext2
nodev   ramfs
        iso9660
nodev   mqueue
        ext3
nodev   rpc_pipefs
nodev   autofs
nodev   nfsd

위의 내용은 FC6 2.6.18-1.2796.fc6xen의 filesystem 내용이다.
음.. CIFS나 SMB가 없는데 어떻게 삼바를 마운트 하나 -ㅁ-?
[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/system_programing/proc/GetSMSInfo]


아무튼, 그리고 저기의 nodev의 의미는 실제장치명을 필요로 하지 않는 녀석이라고 한다.
머.. mount시에 일반적으로
mount -o "타입" "장치명" "마운트될 위치"
으로 실행이 되는데, 굳이 장치명을 기술하지 않아도 되는 녀석이라는 의미이려나?
[링크 : http://kldp.org/node/92546]
Posted by 구차니