From patchwork Sun Dec 5 17:46:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 381141 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 oB5HlCGc025513 for ; Sun, 5 Dec 2010 17:47:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756329Ab0LERrJ (ORCPT ); Sun, 5 Dec 2010 12:47:09 -0500 Received: from smtp204.alice.it ([82.57.200.100]:55327 "EHLO smtp204.alice.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756250Ab0LERrI (ORCPT ); Sun, 5 Dec 2010 12:47:08 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 05 Dec 2010 17:47:13 +0000 (UTC) X-Greylist: delayed 315 seconds by postgrey-1.27 at vger.kernel.org; Sun, 05 Dec 2010 12:47:08 EST Received: from venice.localnet (87.1.6.143) by smtp204.alice.it (8.5.124.08) id 4C88E33B06EA6DF0; Sun, 5 Dec 2010 18:41:48 +0100 To: chris.mason@oracle.com Subject: [PATCH 5/5][REPOST][BTRFS-PROGS] Add the "btrfs filesystem label" command Cc: linux-btrfs@vger.kernel.org, Felix Blanke From: Goffredo Baroncelli Reply-To: kreijack@inwind.it Date: Sun, 5 Dec 2010 18:46:44 +0100 MIME-Version: 1.0 Message-Id: <201012051846.51124.kreijack@inwind.it> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/Makefile b/Makefile index 525676e..c06e512 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS = -g -Werror -Os objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ root-tree.o dir-item.o file-item.o inode-item.o \ inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o \ - volumes.o utils.o btrfs-list.o + volumes.o utils.o btrfs-list.o btrfslabel.o # CHECKFLAGS=-D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \ diff --git a/btrfs.c b/btrfs.c index ab5e57f..ab0a9da 100644 --- a/btrfs.c +++ b/btrfs.c @@ -95,6 +95,10 @@ static struct Command commands[] = { "filesystem balance", "\n" "Balance the chunks across the device." }, + { do_change_label, -1, + "filesystem label", " [