From patchwork Wed Jun 16 19:44:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 55930 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.samba.org (fn.samba.org [216.83.154.106]) by ozlabs.org (Postfix) with ESMTP id 01B6F1007D2 for ; Thu, 17 Jun 2010 05:44:57 +1000 (EST) Received: from fn.samba.org (localhost [127.0.0.1]) by lists.samba.org (Postfix) with ESMTP id CEF41AD178; Wed, 16 Jun 2010 13:44:54 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fn.samba.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.8 tests=BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_NEUTRAL autolearn=ham version=3.2.5 X-Original-To: linux-cifs-client@lists.samba.org Delivered-To: linux-cifs-client@lists.samba.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by lists.samba.org (Postfix) with ESMTP id 750B3ACF29 for ; Wed, 16 Jun 2010 13:44:34 -0600 (MDT) Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5GJiYej028838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Jun 2010 15:44:34 -0400 Received: from localhost.localdomain (vpn-9-124.rdu.redhat.com [10.11.9.124]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5GJiXYD029095; Wed, 16 Jun 2010 15:44:34 -0400 From: Jeff Layton To: linux-cifs-client@lists.samba.org, linux-cifs@vger.kernel.org Date: Wed, 16 Jun 2010 15:44:33 -0400 Message-Id: <1276717473-12198-1-git-send-email-jlayton@samba.org> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Subject: [linux-cifs-client] [PATCH] mount.cifs: use original device name as-is for mtab X-BeenThere: linux-cifs-client@lists.samba.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: The Linux CIFS VFS client List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-cifs-client-bounces@lists.samba.org Errors-To: linux-cifs-client-bounces@lists.samba.org We don't want to alter the device name in any way for the mtab as /bin/umount depends on the string being identical for user mounts. Signed-off-by: Jeff Layton --- mount.cifs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 21ce532..51fc1a8 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -1953,7 +1953,7 @@ mount_retry: } if (!parsed_info->nomtab) - rc = add_mtab(dev_name, mountpoint, parsed_info->flags, fstype); + rc = add_mtab(orig_dev, mountpoint, parsed_info->flags, fstype); mount_exit: if (parsed_info) {