From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 1 10:10:25 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8677516A4E7 for ; Fri, 1 Sep 2006 10:10:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBDEE43D64 for ; Fri, 1 Sep 2006 10:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k81AAMEg097788 for ; Fri, 1 Sep 2006 10:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k81AAMOq097787; Fri, 1 Sep 2006 10:10:22 GMT (envelope-from gnats) Resent-Date: Fri, 1 Sep 2006 10:10:22 GMT Resent-Message-Id: <200609011010.k81AAMOq097787@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lapo Luchini Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CDF916A4DD for ; Fri, 1 Sep 2006 10:02:35 +0000 (UTC) (envelope-from lapo@cyberx.home.lapo.it) Received: from cyberx.home.lapo.it (host71-40.pool8174.interbusiness.it [81.74.40.71]) by mx1.FreeBSD.org (Postfix) with SMTP id 9434643D6D for ; Fri, 1 Sep 2006 10:02:30 +0000 (GMT) (envelope-from lapo@cyberx.home.lapo.it) Received: (qmail 65285 invoked by uid 1001); 1 Sep 2006 10:02:27 -0000 Message-Id: <20060901100227.65284.qmail@cyberx.home.lapo.it> Date: 1 Sep 2006 10:02:27 -0000 From: Lapo Luchini To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Lapo Luchini Subject: bin/102745: "mount -o snapshot" removes any existing "-o" option from the mount X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lapo Luchini List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 10:10:25 -0000 >Number: 102745 >Category: bin >Synopsis: "mount -o snapshot" removes any existing "-o" option from the mount >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 01 10:10:22 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Lapo Luchini >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD cyberx.home.lapo.it 6.1-STABLE FreeBSD 6.1-STABLE #59: Thu Jun 8 22:17:18 CEST 2006 root@cyberx.home.lapo.it:/usr/obj/usr/src/sys/CYBERX i386 >Description: (edited for shortness, showing only relevant lines) % mount /dev/ad0s1f on /usr (ufs, local, soft-updates, acls) % mount -u -o snapshot /usr/snap /usr % mount /dev/ad0s1f on /usr (ufs, local, soft-updates) # now most services don't work anymore as ACLs are missing! # not very nice to silently discard options % mount -u -o acls /usr % mount /dev/ad0s1f on /usr (ufs, local, soft-updates, acls) % mount -u -o acls,snapshot /usr/snap2 /usr % mount /dev/ad0s1f on /usr (ufs, local, soft-updates, acls) # ok, but not very easy to be used from a script % mount -u -o current,snapshot /usr/snap3 /usr mount: -o current: option not supported % mount -u -o fstab,snapshot /usr/snap3 /usr mount: -o fstab: option not supported IMvHO a snapshot should mount the file system exactly as it was before the snapshot or, at least, accept to be paired with "current" or "fstab" in order to automatically select the "same" options that were used. PS: I know I could solve the problems with ACLs using "tunefs -a /usr" and not needing a mount option anymore, but the problem is a bit more general than that (and I only have remote access to that server, so I can't possibly umount /usr in order to tunefs...). >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: