From owner-freebsd-hackers@freebsd.org Sun Feb 14 14:55:34 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FD0BAA71F9 for ; Sun, 14 Feb 2016 14:55:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 31C101F2B for ; Sun, 14 Feb 2016 14:55:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id 305F0AA71F8; Sun, 14 Feb 2016 14:55:34 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FFA2AA71F6 for ; Sun, 14 Feb 2016 14:55:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2B2F1F2A for ; Sun, 14 Feb 2016 14:55:33 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from chamsa.cs.huji.ac.il ([132.65.80.19]) by kabab.cs.huji.ac.il with esmtp id 1aUy58-0007jB-OT for hackers@freebsd.org; Sun, 14 Feb 2016 16:55:26 +0200 From: Daniel Braniss Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: autofs problem Message-Id: <39973B1A-BBB9-4CB7-B352-A42C14B61E0F@cs.huji.ac.il> Date: Sun, 14 Feb 2016 16:55:26 +0200 To: "hackers@freebsd.org" Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 14:55:34 -0000 Hi, I=E2=80=99m converting our (very) old am-utils maps to use the new = autofs, so I wrote a python script that queries the am-utils map, and = =E2=80=98generates=E2=80=99 one that autofs likes. so autofs_master has: =E2=80=A6 /cs auto_cs auto_cs is a python script and is executable. at the moment I=E2=80=99m stuck with what am-utils type=3Dlink so I=E2=80=99m using -fstype=3Dnullfs :/cs/some-path, but before this = can work I need to trigger autofs with the /cs/some-path, so before the script returns I = do a os.stat('/cs/some-path') but this returns an error, mainly because it is not caught by autofs! doing the same in the command line works, and later the nullfs too, = (i=E2=80=99m afraid of what the auto unmount will do later, but that=E2=80=99s another = issue) is this by design? or is there some better way? thanks, danny