From owner-freebsd-rc@FreeBSD.ORG Fri Nov 2 10:35:13 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4111C9; Fri, 2 Nov 2012 10:35:13 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E2B528FC0C; Fri, 2 Nov 2012 10:35:12 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jf20so1453100bkc.13 for ; Fri, 02 Nov 2012 03:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=/Eu/VatBmMtf8+CKJ9O+FDXep/X6sAZthyPUrEkwP4c=; b=c6d+byxx0zxaO28GWTvV1RTF/3KhRcZFwKSpVfFI0dsGFrKLhH2Rktmm2Gc0/1Ihge G871JwCMzhg4ylaHmBSxxXJhqQIuvDkS531l/TnUNKr04rOKTHhsEe2TSwUPkw6ENccs vgjp3ZTWbiI1UzhYSeHCzmtKWZRWMZy4jmal/fwig7K04J0bNK2GFdZDgGifPY/fh2Jv tdzrvcQfc6f6luYYPcs53f+kDMTdIb/M/hCd2iIhdwcpqv/abpB3qJDmlWF6klW/RJCn 9D51P9CCXhxJb0WXTyceWUaMlgetEF8o8C7h5u7dmAV/WEpSFxGrWraiUXLvT0EjapX0 b7Dw== Received: by 10.204.156.74 with SMTP id v10mr259543bkw.39.1351852511829; Fri, 02 Nov 2012 03:35:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.50.197 with HTTP; Fri, 2 Nov 2012 03:34:41 -0700 (PDT) From: Chris Rees Date: Fri, 2 Nov 2012 10:34:41 +0000 Message-ID: Subject: mountlate being too mount-happy To: "freebsd-rc@freebsd.org" , Mateusz Guzik , Jilles Tjoelker Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 10:35:13 -0000 [Those who commented and helped in IRC are in CC] Hi all, As described in conf/137692 rc.d/mountlate runs mount -a -d -l to find late filesystems, and mounts them. Unfortunately, this also tries again to mount filesystems that are awaiting mount from the first time; for example a background nfs mount will not be mounted at this time, so mountlate tries to mount it again. The solution is for mountlate to check ONLY for filesystems that should be mounted late. The patch is a little on the nasty side, and depends on /usr (which probably isn't a problem for mount*LATE*), but alternatively we could parse fstab using /bin/ed or something... but that feels less correct. Alternatively we could create temporary files and comm them, but again I don't think we have anywhere to write. http://www.bayofrum.net/~crees/patches/137629.diff Chris