From patchwork Tue Feb 15 18:12:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 559321 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1FID1Xd010405 for ; Tue, 15 Feb 2011 18:13:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755497Ab1BOSM6 (ORCPT ); Tue, 15 Feb 2011 13:12:58 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:64794 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752043Ab1BOSM6 (ORCPT ); Tue, 15 Feb 2011 13:12:58 -0500 Received: by fxm20 with SMTP id 20so458457fxm.19 for ; Tue, 15 Feb 2011 10:12:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=LfFLF/EQhV+Ub2Q0PBmqi63l96hOn1gP4U1cjqUg/pY=; b=GvHNxinTmpu1MG/bfzSefesl1ERCDVCmvb9HZdi9ayMzfd0gi5GgIBhadhGlx5v0vR 0eKAcU1h8HzcyYSQpPAyNuLryD/WLxCLhyCegnzSVy7febvuCv6iRV7zBIdIhOl78guC 2PU/wu5W+YYK+ht+ia8nRqerEU6KQlVyy4axU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=fSBqpUlJnHRC5unXNM/KLxhC6cj7LVMAv0XgkwgC8poVY3Baa8wkfiuH/H/IrUt8yj 3XcUUms0WhClR7e1dK2DGKFzuq6Pzbb6yLQoK0NtFcR43xV3JOgBwnD8D2Kw4cnP+tzU bbrF0lw1yCW12gEWmglfKUnKHtPuczqaq/Bgs= Received: by 10.223.70.142 with SMTP id d14mr211253faj.110.1297793577175; Tue, 15 Feb 2011 10:12:57 -0800 (PST) Received: from localhost ([109.110.87.60]) by mx.google.com with ESMTPS id 17sm1808621far.43.2011.02.15.10.12.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 10:12:55 -0800 (PST) Date: Tue, 15 Feb 2011 20:12:57 +0200 From: Ilya Dryomov To: linux-btrfs@vger.kernel.org Cc: Chris Mason Subject: [PATCH] Btrfs: set FMODE_EXCL in btrfs_device->mode Message-ID: <20110215181257.GA9110@kwango.lan.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 18:13:02 +0000 (UTC) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 2636a05..a228f63 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1631,7 +1631,7 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path) device->dev_root = root->fs_info->dev_root; device->bdev = bdev; device->in_fs_metadata = 1; - device->mode = 0; + device->mode = FMODE_EXCL; set_blocksize(device->bdev, 4096); if (seeding_dev) {