From aoe Fri Apr 21 23:43:14 2000 Received: (qmail 32292 invoked from network); 21 Apr 2000 21:43:14 -0000 Received: from nic.funet.fi (193.166.0.145) by mars.zserv.tuwien.ac.at with SMTP; 21 Apr 2000 21:43:14 -0000 Received: from vger.rutgers.edu ([128.6.190.2]:4247 "EHLO vger.rutgers.edu" ident: "NO-IDENT-SERVICE[2]" smtp-auth: TLS-CIPHER: ) by nic.funet.fi with ESMTP id ; Sat, 22 Apr 2000 00:40:57 +0300 Received: by vger.rutgers.edu via listexpand id ; Fri, 21 Apr 2000 17:32:02 -0400 Received: by vger.rutgers.edu id ; Fri, 21 Apr 2000 17:31:52 -0400 Received: from mars.zserv.tuwien.ac.at ([193.170.75.15]:1836 "HELO mars.zserv.tuwien.ac.at") by vger.rutgers.edu with SMTP id ; Fri, 21 Apr 2000 17:31:34 -0400 Received: (qmail 32147 invoked by uid 533); 21 Apr 2000 21:36:01 -0000 Date: Fri, 21 Apr 2000 23:36:01 +0200 From: Alexander Oelzant To: linux-kernel@vger.rutgers.edu Subject: [PATCH] symlink-hack for smbfs under linux Message-ID: <20000421233601.A32013@mars.zserv.tuwien.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i Sender: owner-linux-kernel@vger.rutgers.edu Precedence: bulk X-Loop: majordomo@vger.rutgers.edu Status: RO Content-Length: 1587 Lines: 37 I've programmed a quick-and-dirty version of symlinks for smbfs. This hack uses the system attribute and otherwise works much like the ncpfs-hack, that is to say, I write the magic cookie at the beginning of the file. Of course the server has to map the system attribute, which samba notably doesn't do by default. smb.conf entries of "map system = yes" and "create mask = 750" (or higher) are therefore necessary. Currently I also write a NUL-byte at the end of the symlink; from the other implementations I assume this would not be necessary, but for the moment I'm glad I got rid of the oopses (memcpy vs memcpy_fromfs in smb_proc_write gave me a real pain in 2.0.33 and yes, everything else does need the memcpy_fromfs so I had to create a similar smb_proc_write_mem and make it use memcpy. I still don't get it) and happy to forget everything about it at least until after easter. As the patch is rather large (> 10k), I'd rather not include it here; versions for 2.0.33 and 2.3.99 are available at http://prawda.oeh.net/~aoe/mystuff/smb.symlinks.2.0.33.v0.2.patch http://prawda.oeh.net/~aoe/mystuff/smb.symlinks.2.3.99.v0.2.patch or http://mars.tuwien.ac.at/~aoe/smb.symlinks.2.0.33.v0.2.patch http://mars.tuwien.ac.at/~aoe/smb.symlinks.2.3.99.v0.2.patch Alexander -- Alexander Oelzant alexander@oelzant.priv.at Durchlaufstr. 7/4/5 aoe@bluebox.eu.org A-1200 Wien aoe@mars.tuwien.ac.at - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/