[Ocfs2-tools-devel] [PATCH] adding code to mounted.c to translate /dev/dm-[N] names to /dev/mapper/xxx names.
    Sunil Mushran 
    sunil.mushran at oracle.com
       
    Thu Dec  3 18:33:14 PST 2009
    
    
  
Tristan wrote:
> Btw, you're required to handle errors gracefully I guess:-)
>
> such as,
>
> dir = opendir(dirname);
>
> if (!dir) {
> ret = errno;
> com_err(programe, 0, "Can not open dir %s: %s\n", dirname, strerror(ret));
> return -1;
> }
>   
Actually he is fine there as he uses the dm-device name if that fails.
    
    
More information about the Ocfs2-tools-devel
mailing list