Re: 2.1.79 + latest smbfs patch

manolow@step.es
Sat, 17 Jan 1998 18:36:18 +0000 (WET)


On 17 Jan, Eloy A. Paris wrote:
> David Burrows <snadge@gemcorp.com.au> wrote:
>
> : I just tried the above modification to <linux/smb_mount.h>, recompiled
> : smbmnt, and lo and behold everything now works perfectly.. F@#$@ glibc2..
> : :P
>
> Great! There are also references to uid_t, gid_t and mode_t in smb.h
> and smb_fs.h. I changed them as well just to be sure.
>
> Manolo says he was able to compile and work with smbfs with glibc. I
> wonder if he modified smb_mount.h as well. Did you Manolo?
>
> : How about someone update the mount tools and maybe that include file with
> : #ifdefs for glibc2 so nobody else has to go through that.. :)
>
> I think it is better to have the include files modified in the kernel
> sources. Changing uid_t to __kernel_uid_t is pretty harmless, as far
> as I can see. This change in the kernel include files will make
> compilation of smbfs userland utilities (and ncpfs utilities as well)
> very ease under both libc5 and glibc.
>
> : Another thought, why is there a smbmount and smbmnt.. it seems rather
> : pointless as the only command smbmount supports is mount, which just calls
> : smbmnt.. How about integrating smbmnt with smbmount like it originally was
> : in 2.0.xx? Is this a feasable idea, I'm sure a quick hack could be
> : whipped up.
>
> I agree. This would be a great idea. I really prefer to have a
> smbfs-2.2.x package rather than having the smbfs userland tools as
> part of the Samba package.
>
> I guess the problem is that the smbfs userland utilities depend too
> much on smbclient to make the initial connection to the server and
> maybe the Samba team is not willing to have parts of its smbclient
> code in another package.
>
> : How about the mount tool being able to automatically detect NT, 95, Samba,
> : Wfw, etc, and being able to enable workarounds automatically. :) That is
> : a bit much to ask though because we arn't really sure which workarounds
> : solve which problems yet.
>
> : P.S. I'm very happy this is working now.. /me does multiple backflips
>
> So I am :-) It's nice to see 123 as the UID and 456 as the group ID
> when smbmnt is called with -u 123 and -g 456 :-)
>
> See ya!
>
> E.-
>

Yes, I made a compilation of Bill's patches plus redhat hacks (from
their smbfs updates for Hurricane) and mine (which essentially were
doing what you proposed) and now it seems to work fine. (I've sent them
to the list -twice- :-( beacuse in my first try they were not clean)

---------------------------------------------------------------
root@mgmux(1)[/tmp]# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/sda4 528722 411196 90216 82% /
/dev/sda3 521434 328117 166810 66% /2.1
/dev/sda1 1052225 706593 345632 67% /winnt
/dev/sdb1 1052480 209440 843040 20% /ms2d
/dev/sdd1 2096160 771008 1325152 37% /ms2e
/dev/sdc1 1035111 204762 777717 21% /u1
/dev/sdd2 2100104 450737 1542535 23% /u3
/dev/md0 1984994 712085 1171943 38% /strip
root@mgmux(2)[/tmp]# smbmount //innt1/discoc '-c mount /mnt' -U Administrator
Server time is Sat Jan 17 18:33:47 1998
Timezone is UTC-0.0
Password:
Domain=[INNOVA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
security=user
root@mgmux(3)[/tmp]# ls -l /mnt
ls: /mnt/pagefile.sys: Text file busy
total 905
-rwxr-xr-x 1 root root 0 Oct 15 09:13 AUTOEXEC.BAT
drwxr-xr-x 1 root root 512 Oct 16 13:27 Awent40
-rwxr-xr-x 1 root root 0 Oct 15 09:13 CONFIG.SYS
drwxr-xr-x 1 root root 512 Oct 16 12:56 ExecSoft
-r-xr-xr-x 1 root root 0 Oct 15 09:13 IO.SYS
-r-xr-xr-x 1 root root 0 Oct 15 09:13 MSDOS.SYS
-r-xr-xr-x 1 root root 26800 Aug 9 1996 NTDETECT.COM
drwxr-xr-x 1 root root 512 Oct 21 15:48 Program Files
drwxr-xr-x 1 root root 512 Dec 16 14:31 RECYCLER
drwxr-xr-x 1 root root 512 Jan 16 20:24 TEMP
drwxr-xr-x 1 root root 512 Jan 16 15:39 WINNT
-r-xr-xr-x 1 root root 279 Oct 15 09:13 boot.ini
drwxr-xr-x 1 root root 512 Dec 4 18:22 fabi
-rwxr-xr-x 1 root root 5205 Dec 4 17:13 ffastun.ffa
-rwxr-xr-x 1 root root 98304 Dec 4 17:13 ffastun.ffl
-rwxr-xr-x 1 root root 135168 Dec 4 17:13 ffastun.ffo
-rwxr-xr-x 1 root root 491520 Dec 4 17:13 ffastun0.ffx
drwxr-xr-x 1 root root 512 Nov 27 18:34 host-news
drwxr-xr-x 1 root root 512 Nov 14 13:25 kits
drwxr-xr-x 1 root root 512 Nov 14 13:35 kk
-r-xr-xr-x 1 root root 156496 Oct 16 13:59 ntldr
root@mgmux(4)[/tmp]# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/sda4 528722 411164 90248 82% /
/dev/sda3 521434 328117 166810 66% /2.1
/dev/sda1 1052225 706593 345632 67% /winnt
/dev/sdb1 1052480 209440 843040 20% /ms2d
/dev/sdd1 2096160 771008 1325152 37% /ms2e
/dev/sdc1 1035111 204762 777717 21% /u1
/dev/sdd2 2100104 451154 1542118 23% /u3
/dev/md0 1984994 712085 1171943 38% /strip
//innt1/discoc 2108672 516928 1591744 25% /mnt
root@mgmux(5)[/tmp]# smbumount /mnt
-------------------------------------------------------------------

-- 
-- 
Manuel J. Galan
manolow@step.es