From: Vitaly Fertman Subject: Re: Could reiserfsprogs display volume labels when doing fsck upon boot? Date: Mon, 17 Oct 2005 14:03:51 +0400 Message-ID: <200510171403.51384.vitaly@namesys.com> References: <434F7D17.1030203@people.pl> <200510141620.28514.vitaly@namesys.com> <4350F3C8.3070600@darthvader.us> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <4350F3C8.3070600@darthvader.us> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: reiserfs-list@namesys.com Cc: Yiannis Mavroukakis On Saturday 15 October 2005 16:19, Yiannis Mavroukakis wrote: > Vitaly Fertman wrote: > > >On Friday 14 October 2005 16:07, Raymond A. Meijer wrote: > > > > > >>On Friday 14 October 2005 15:07, Vitaly Fertman wrote: > >> > >>[...] > >> > >> > >> > >>>ok, I will add it. > >>> > >>> > >>Vitaly, is it possible to add labels to Reiser4 filesystems AFTER mkfs, > >>or only during mkfs? > >> > >> > > > >only on mkfs time for now. > > > > > > > For reiser4, would this do it? > in function *reiser4_master_open(aal_device_t *device) in > libreiser4/master.c > > /* Reiser4 master super block is not found on the device. */ > if (aal_strncmp(SUPER(master)->ms_magic, REISER4_MASTER_MAGIC, > sizeof(REISER4_MASTER_MAGIC)) != 0) > { > aal_fatal("Wrong magic found in the master " > "super block."); > goto error_free_master; > } > /* Print volume label */ > aal_mess(reiser4_master_get_label(master)); > > return master; > > error_free_master: > aal_free(master); > return NULL; > > > Stab in the dark :P I would put it into fsck after fs gets opened to not force all callers to get this message. however, 'fsck.reiser4 -a' does not perform any check yet and does not even open fs. -- Vitaly