From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13107 invoked from network); 1 Jul 1998 06:50:39 -0000 Received: from ripspost.aist.go.jp (150.29.9.2) by mail2.redhat.com with SMTP; 1 Jul 1998 06:50:39 -0000 Received: from bhalpha1.nibh.go.jp ([150.29.66.225]) by ripspost.aist.go.jp (8.8.8+2.7Wbeta7/3.6W) with SMTP id PAA29018 for ; Wed, 1 Jul 1998 15:50:22 +0900 (JST) Date: Wed, 1 Jul 1998 15:50:02 +0900 (JST) From: Tom Holroyd X-Sender: tomh@bhalpha1.nibh.go.jp To: axp-list@redhat.com Subject: Re: samba, smbmount, smbfs & 2.0.34 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII My apologies if this appears twice; I cc'd this to axp-list yesterday and it didn't show up (that I know of). I'm running Linux 2.0.34, patched from RedHat 5.0. If you have compiled smbfs support into your kernel (I did mine as a module), you'll find that you can't mount smb shares because the smbmount program is missing (from RedHat's distribution). If you look for smbmount in the Samba distribution, you'll find that it won't compile unless you have kernel 2.1.70 or better, and if you read the Makefile, you'll be directed to smbfs-2.0.2 on ftp://ftp.gwdg.de/pub/linux/misc/smbfs and you'll discover that this doesn't compile either. It turns out that it's just a bunch of #include file inconsistencies. I suspect that's the only problem with the Samba distribution as well. You can get smbmount to compile if you replace the #includes at the top with these: ------------------------------ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include ------------------------------ You'll also need ------------------------------ #define SMB_IOC_GETMOUNTUID _IOR('u', 1, uid_t) ------------------------------ to get smbumount to compile, and there's a bug in smbfs in this kernel related to the uid returned by the GETMOUNTUID ioctl call: it returns a short instead of an int, leaving a half-word of garbage. So stick mount_uid &= 0xFFFF; after the ioctl. That'll do it. The smbfs module could use some better error checking though. When I give an invalid password I get a /var/log/messages entry that reads kernel: smb_dont_catch_keepalive: server->data_ready == NULL Duh. Hey, I have Win95 shares mounted on my Alpha. Cool. I backed up my laptop's hard disk to the MO disk on my Alpha using "cp -a".. I love this stuff. Dr. Tom Holroyd Behavior Control Lab, Human Informatics Dept. The basis of National Institute of Bioscience and Human-Technology stability is 1-1 Higashi, Tsukuba-shi, Ibaraki 305, Japan instability. The 9th Amendment of the U.S. Constitution: "The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people."