Vitaly Fertman wrote:

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.

Hello Vitaly,

Thanks for the info. Here is where I show my ignorance so bear with me..Can the caller be "identified" somehow? Say for example, a mount operation or an fsck, then output the system label if there is one..or does this sort of cosmetic touch not fit
in libreiser?

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

Reply via email to