Bug 137378 - Advisory locks fail with ports/security/cfs on FreeBSD 7.2
Summary: Advisory locks fail with ports/security/cfs on FreeBSD 7.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 09:10 UTC by Mark Knight
Modified: 2013-05-16 19:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Knight 2009-08-03 09:10:00 UTC
Advisory lock fails with ports/security/cfs, preventing vi etc. working correctly.

How-To-Repeat: lockf a.txt ls
lockf: cannot open a.txt: Resource temporarily unavailable
Comment 1 Mark Knight 2009-08-07 22:10:27 UTC
I should mention that this worked fine under FreeBSD 6.4 with port 
version 1.4.1.4.
-- 
Mark A. R. Knight                               finger: markk@knigma.org
Tel: +44 7880 556751                            http://www.knigma.org/
Comment 2 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-05-09 02:51:35 UTC
Hi, this problem still continue?
Comment 3 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-05-09 02:51:56 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sylvio

I'll take it.
Comment 4 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-05-09 03:17:24 UTC
State Changed
From-To: open->feedback

- Waiting feedback of submitter.
Comment 5 Mark Knight 2010-05-09 08:39:43 UTC
Yes, advisory locks still fail with cfs-1.4.1_5 on FreeBSD 7.3-RELEASE.  
Thanks a lot for looking at this.  I haven't tried it on 8.0-RELEASE or 
current.

-- 
Mark A. R. Knight                               markk@knigma.org
Tel: +44 7880 556751                            http://www.knigma.org/
Comment 6 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-05-09 14:48:10 UTC
Ok, I'll see this problem so.

Thanks.
Comment 7 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-07-20 14:31:29 UTC
Responsible Changed
From-To: sylvio->freebsd-ports-bugs

back to pool.
Comment 8 Shaun Amott freebsd_committer freebsd_triage 2010-09-09 05:29:49 UTC
State Changed
From-To: feedback->open

Feedback received.
Comment 9 dfilter service freebsd_committer freebsd_triage 2011-09-04 17:57:45 UTC
crees       2011-09-04 16:57:30 UTC

  FreeBSD ports repository

  Modified files:
    security/cfs         Makefile 
  Log:
  Mark deprecated; broken for two years with no fix.
  
  Expires on 4/Nov
  
  PR:             ports/137378 ports/155788
  
  Revision  Changes    Path
  1.28      +4 -0      ports/security/cfs/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 10 Rene Ladan freebsd_committer freebsd_triage 2011-10-05 00:17:15 UTC
State Changed
From-To: open->closed

Port expired and removed.
Comment 11 dfilter service freebsd_committer freebsd_triage 2013-05-16 19:22:16 UTC
Author: crees
Date: Thu May 16 18:22:08 2013
New Revision: 318325
URL: http://svnweb.freebsd.org/changeset/ports/318325

Log:
  Use explicit IP for localhost rather than DNS name; this causes ipv6 attempts
  
  PR:		ports/155788
  Submitted by:	System Administrator <root@naboo.vindaloo.com>
  
  Pass flag to mount to disable lockd
  
  PR:		ports/137378
  Submitted by:	kib

Modified:
  head/security/cfs/files/cfsd.in
  head/security/cfs/files/pkg-message.in

Modified: head/security/cfs/files/cfsd.in
==============================================================================
--- head/security/cfs/files/cfsd.in	Thu May 16 17:34:12 2013	(r318324)
+++ head/security/cfs/files/cfsd.in	Thu May 16 18:22:08 2013	(r318325)
@@ -4,6 +4,7 @@
 #
 # PROVIDE: cfsd
 # REQUIRE: mountd
+# KEYWORD: shutdown
 #
 # Add the following line to /etc/rc.conf to enable cfsd:
 #
@@ -22,7 +23,7 @@ rcvar=cfsd_enable
 
 load_rc_config $name
 
-: ${cfsd_enable=no}
+: ${cfsd_enable:=no}
 : ${cfsd_port=3049}
 : ${cfsd_mountpoint=/crypt}
 
@@ -35,7 +36,7 @@ stop_precmd=cfsd_prestop
 cfsd_poststart()
 {
 	if [ -n "$cfsd_mountpoint" ]; then
-		mount -o port="$cfsd_port",mntudp,nfsv2 localhost:%%CFSD_BOOTSTRAP%% "$cfsd_mountpoint"
+		mount -o port="$cfsd_port",udp,nfsv2,nolockd 127.0.0.1:%%CFSD_BOOTSTRAP%% "$cfsd_mountpoint"
 	fi
 }
 

Modified: head/security/cfs/files/pkg-message.in
==============================================================================
--- head/security/cfs/files/pkg-message.in	Thu May 16 17:34:12 2013	(r318324)
+++ head/security/cfs/files/pkg-message.in	Thu May 16 18:22:08 2013	(r318325)
@@ -3,7 +3,7 @@ Quick start instructions:
 
   - add the following entry to /etc/exports:
 
-    %%CFSD_BOOTSTRAP%% localhost
+    %%CFSD_BOOTSTRAP%% 127.0.0.1
 
   - create the default CFS mountpoint (if you want to use a different
     mountpoint, set the cfsd_mountpoint variable in /etc/rc.conf):
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"