From owner-freebsd-questions@FreeBSD.ORG Wed May 10 13:09:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CFE516A400 for ; Wed, 10 May 2006 13:09:24 +0000 (UTC) (envelope-from Gabor@Zahemszky.HU) Received: from mta01.mail.t-online.hu (mta04.mail.t-online.hu [195.228.240.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 443ED43D4C for ; Wed, 10 May 2006 13:09:23 +0000 (GMT) (envelope-from Gabor@Zahemszky.HU) Received: from [192.168.1.3] (dsl51B6175E.pool.t-online.hu [81.182.23.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.t-online.hu (Postfix) with ESMTP for ; Wed, 10 May 2006 15:09:22 +0200 (CEST) Message-ID: <4461E601.2010709@Zahemszky.HU> Date: Wed, 10 May 2006 15:09:21 +0200 From: =?ISO-8859-2?Q?Zahemszky_G=E1bor?= User-Agent: Thunderbird 1.5.0.2 (X11/20060423) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Subject: mount_smbfs locking? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 13:09:24 -0000 Hi! Are there any mechanism to "lock" files (as the Win-clients), shared by a Windows-server, and reached on a smbfs-mounted file system? I haven' found any mount options in mount_smbfs's manual. Bye, Gábor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!';IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set -- $Z;for i;{ [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set -- $Z;for i;{ [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;j="$j $i";typeset +l i;};print "$j"