\hypertarget{g__label__reiserfs_8c_source}{}\doxysection{g\+\_\+label\+\_\+reiserfs.\+c}
\label{g__label__reiserfs_8c_source}\index{geom/label/g\_label\_reiserfs.c@{geom/label/g\_label\_reiserfs.c}}
\mbox{\hyperlink{g__label__reiserfs_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2005 Stanislav Sedov}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00015}00015 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00016}00016 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00017}00017 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00018}00018 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00019}00019 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00020}00020 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00021}00021 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00022}00022 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00023}00023 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00024}00024 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00025}00025 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00026}00026 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00027}00027 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00028}00028 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00029}00029 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00030}\mbox{\hyperlink{g__label__reiserfs_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00030}} \mbox{\hyperlink{g__label__reiserfs_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00031}00031 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00032}00032 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{geom_8h}{geom/geom.h}}>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00038}00038 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{geom__dbg_8h}{geom/geom\_dbg.h}}>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00039}00039 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{g__label_8h}{geom/label/g\_label.h}}>}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00040}00040 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00041}\mbox{\hyperlink{g__label__reiserfs_8c_ad0a20ac88347dbfc5fe4cdfc478cd613}{00041}} \textcolor{preprocessor}{\#define REISERFS\_NEW\_DISK\_OFFSET 64 * 1024}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00042}\mbox{\hyperlink{g__label__reiserfs_8c_ac988bc3c74882811a24845a7b44cfa25}{00042}} \textcolor{preprocessor}{\#define REISERFS\_OLD\_DISK\_OFFSET 8 * 1024}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00043}\mbox{\hyperlink{g__label__reiserfs_8c_ab93fca064d706ba11c723e6e3e2793c1}{00043}} \textcolor{preprocessor}{\#define REISERFS\_SUPER\_MAGIC    "{}ReIsEr"{}}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00045}\mbox{\hyperlink{structreiserfs__sb}{00045}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{structreiserfs__sb}{reiserfs\_sb}} \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00046}\mbox{\hyperlink{structreiserfs__sb_ae7d32587402e25e3efe0e4ef532cd9a5}{00046}}         \mbox{\hyperlink{binstream_8h_ab077fa1127453be2bd9d4c3c8a768fa7}{uint8\_t}}          \mbox{\hyperlink{structreiserfs__sb_ae7d32587402e25e3efe0e4ef532cd9a5}{fake1}}[52];}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00047}\mbox{\hyperlink{structreiserfs__sb_a3d1690721ceef448413e90df390d628a}{00047}}         \textcolor{keywordtype}{char}            \mbox{\hyperlink{structreiserfs__sb_a3d1690721ceef448413e90df390d628a}{s\_magic}}[10];}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00048}\mbox{\hyperlink{structreiserfs__sb_a98969c40f95cc404417c6e862473591f}{00048}}         \mbox{\hyperlink{binstream_8h_ab077fa1127453be2bd9d4c3c8a768fa7}{uint8\_t}}          \mbox{\hyperlink{structreiserfs__sb_a98969c40f95cc404417c6e862473591f}{fake2}}[10];}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00049}\mbox{\hyperlink{structreiserfs__sb_a1a7b6591f4f2eb634dbbfcb32f12ab54}{00049}}         uint16\_t        \mbox{\hyperlink{structreiserfs__sb_a1a7b6591f4f2eb634dbbfcb32f12ab54}{s\_version}};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00050}\mbox{\hyperlink{structreiserfs__sb_adfa04c03e33c91e4f0e0b0e488ba961e}{00050}}         \mbox{\hyperlink{binstream_8h_ab077fa1127453be2bd9d4c3c8a768fa7}{uint8\_t}}          \mbox{\hyperlink{structreiserfs__sb_adfa04c03e33c91e4f0e0b0e488ba961e}{fake3}}[26];}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00051}\mbox{\hyperlink{structreiserfs__sb_a5225a906c0aeb020455106b25a502c46}{00051}}         \textcolor{keywordtype}{char}            \mbox{\hyperlink{structreiserfs__sb_a5225a906c0aeb020455106b25a502c46}{s\_volume\_name}}[16];}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00052}\mbox{\hyperlink{g__label__reiserfs_8c_aa7333e8d55c0de2c3ab05ef890cc4d76}{00052}} \} \mbox{\hyperlink{g__label__reiserfs_8c_aa7333e8d55c0de2c3ab05ef890cc4d76}{reiserfs\_sb\_t}};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00053}00053 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00054}00054 \textcolor{keyword}{static} \mbox{\hyperlink{structreiserfs__sb}{reiserfs\_sb\_t}} *}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00055}\mbox{\hyperlink{g__label__reiserfs_8c_acf73fbf428638c1a5828c9f676b14108}{00055}} \mbox{\hyperlink{g__label__reiserfs_8c_acf73fbf428638c1a5828c9f676b14108}{g\_label\_reiserfs\_read\_super}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__consumer}{g\_consumer}} *\mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}, off\_t \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}})}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00056}00056 \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00057}00057         \mbox{\hyperlink{structreiserfs__sb}{reiserfs\_sb\_t}} *fs;}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00058}00058         u\_int secsize;}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00059}00059 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00060}00060         secsize = \mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}-\/>\mbox{\hyperlink{structg__consumer_a6435d5aec0376e995dce3131fd3beb52}{provider}}-\/>\mbox{\hyperlink{structg__provider_aea3cd43d41461790b8d0afcd8c49a355}{sectorsize}};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00062}00062         \textcolor{keywordflow}{if} ((\mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}} \% secsize) != 0)}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00063}00063                 \textcolor{keywordflow}{return} (NULL);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00064}00064         \textcolor{keywordflow}{if} (secsize < \textcolor{keyword}{sizeof}(*fs))}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00065}00065                 \textcolor{keywordflow}{return} (NULL);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00066}00066 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00067}00067         fs = \mbox{\hyperlink{geom_8h_a550c2071f79908eea3d1ccbf821c4e4f}{g\_read\_data}}(\mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}, \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}}, secsize, NULL);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00068}00068         \textcolor{keywordflow}{if} (fs == NULL)}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00069}00069                 \textcolor{keywordflow}{return} (NULL);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00070}00070 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00071}00071         \textcolor{keywordflow}{if} (strncmp(fs-\/>\mbox{\hyperlink{structreiserfs__sb_a3d1690721ceef448413e90df390d628a}{s\_magic}}, \mbox{\hyperlink{g__label__reiserfs_8c_ab93fca064d706ba11c723e6e3e2793c1}{REISERFS\_SUPER\_MAGIC}},}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00072}00072             strlen(\mbox{\hyperlink{g__label__reiserfs_8c_ab93fca064d706ba11c723e6e3e2793c1}{REISERFS\_SUPER\_MAGIC}})) != 0) \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00073}00073                 \mbox{\hyperlink{geom_8h_ad9924deb20de7b40cb6cf06e5ae28855}{g\_free}}(fs);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00074}00074                 \textcolor{keywordflow}{return} (NULL);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00075}00075         \}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00076}00076 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00077}00077         \textcolor{keywordflow}{return} (fs);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00078}00078 \}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00079}00079 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00080}00080 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00081}\mbox{\hyperlink{g__label__reiserfs_8c_ac8927aaba17610b9c20f34c03ff5fccc}{00081}} \mbox{\hyperlink{g__label__reiserfs_8c_ac8927aaba17610b9c20f34c03ff5fccc}{g\_label\_reiserfs\_taste}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__consumer}{g\_consumer}} *\mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}, \textcolor{keywordtype}{char} *label, \textcolor{keywordtype}{size\_t} size)}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00082}00082 \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00083}00083         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__provider}{g\_provider}} *\mbox{\hyperlink{g__part__if_8m_a9bc7638f295763b77465c5ebebbd3442}{pp}};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00084}00084         \mbox{\hyperlink{structreiserfs__sb}{reiserfs\_sb\_t}} *fs;}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00085}00085 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00086}00086         \mbox{\hyperlink{geom_8h_a71a3365bd3741226d2c0d1abada9fde7}{g\_topology\_assert\_not}}();}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00087}00087         \mbox{\hyperlink{g__part__if_8m_a9bc7638f295763b77465c5ebebbd3442}{pp}} = \mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}-\/>\mbox{\hyperlink{structg__consumer_a6435d5aec0376e995dce3131fd3beb52}{provider}};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00088}00088         label[0] = \textcolor{charliteral}{'\(\backslash\)0'};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00089}00089 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00090}00090         \textcolor{comment}{/* Try old format */}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00091}00091         fs = \mbox{\hyperlink{g__label__reiserfs_8c_acf73fbf428638c1a5828c9f676b14108}{g\_label\_reiserfs\_read\_super}}(\mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}, \mbox{\hyperlink{g__label__reiserfs_8c_ac988bc3c74882811a24845a7b44cfa25}{REISERFS\_OLD\_DISK\_OFFSET}});}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00092}00092         \textcolor{keywordflow}{if} (fs == NULL) \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00093}00093                 \textcolor{comment}{/* Try new format */}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00094}00094                 fs = \mbox{\hyperlink{g__label__reiserfs_8c_acf73fbf428638c1a5828c9f676b14108}{g\_label\_reiserfs\_read\_super}}(\mbox{\hyperlink{g__part__if_8m_a294f18324585ff37641fb8aa1c9ccd82}{cp}}, \mbox{\hyperlink{g__label__reiserfs_8c_ad0a20ac88347dbfc5fe4cdfc478cd613}{REISERFS\_NEW\_DISK\_OFFSET}});}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00095}00095         \}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00096}00096         \textcolor{keywordflow}{if} (fs == NULL)}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00097}00097                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00098}00098 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00099}00099         \textcolor{comment}{/* Check version */}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00100}00100         \textcolor{keywordflow}{if} (fs-\/>\mbox{\hyperlink{structreiserfs__sb_a1a7b6591f4f2eb634dbbfcb32f12ab54}{s\_version}} == 2) \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00101}00101                 \mbox{\hyperlink{g__label_8h_ab435bceb519dfa97ee448bc0f18e200f}{G\_LABEL\_DEBUG}}(1, \textcolor{stringliteral}{"{}reiserfs file system detected on \%s."{}},}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00102}00102                     \mbox{\hyperlink{g__part__if_8m_a9bc7638f295763b77465c5ebebbd3442}{pp}}-\/>\mbox{\hyperlink{structg__provider_a2bffb416ee58cf4df7839c6fd5ec004a}{name}});}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00103}00103         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00104}00104                 \textcolor{keywordflow}{goto} exit\_free;}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00105}00105         \}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00106}00106 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00107}00107         \textcolor{comment}{/* Check for volume label */}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00108}00108         \textcolor{keywordflow}{if} (fs-\/>\mbox{\hyperlink{structreiserfs__sb_a5225a906c0aeb020455106b25a502c46}{s\_volume\_name}}[0] == \textcolor{charliteral}{'\(\backslash\)0'})}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00109}00109                 \textcolor{keywordflow}{goto} exit\_free;}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00110}00110 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00111}00111         \textcolor{comment}{/* Terminate label */}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00112}00112         fs-\/>\mbox{\hyperlink{structreiserfs__sb_a5225a906c0aeb020455106b25a502c46}{s\_volume\_name}}[\textcolor{keyword}{sizeof}(fs-\/>\mbox{\hyperlink{structreiserfs__sb_a5225a906c0aeb020455106b25a502c46}{s\_volume\_name}}) -\/ 1] = \textcolor{charliteral}{'\(\backslash\)0'};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00113}00113         strlcpy(label, fs-\/>\mbox{\hyperlink{structreiserfs__sb_a5225a906c0aeb020455106b25a502c46}{s\_volume\_name}}, size);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00114}00114 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00115}00115 exit\_free:}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00116}00116         \mbox{\hyperlink{geom_8h_ad9924deb20de7b40cb6cf06e5ae28855}{g\_free}}(fs);}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00117}00117 \}}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00118}00118 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00119}\mbox{\hyperlink{g__label_8h_a95bc37d8e8ceeb45cf96a5011674426f}{00119}} \textcolor{keyword}{struct }\mbox{\hyperlink{structg__label__desc}{g\_label\_desc}} \mbox{\hyperlink{g__label__reiserfs_8c_a95bc37d8e8ceeb45cf96a5011674426f}{g\_label\_reiserfs}} = \{}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00120}00120         .\mbox{\hyperlink{structg__label__desc_a5c38840bd2d369860b22fb12362fb4de}{ld\_taste}} = \mbox{\hyperlink{g__label__reiserfs_8c_ac8927aaba17610b9c20f34c03ff5fccc}{g\_label\_reiserfs\_taste}},}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00121}00121         .ld\_dirprefix = \textcolor{stringliteral}{"{}reiserfs/"{}},}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00122}00122         .ld\_enabled = 1}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00123}00123 \};}
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00124}00124 }
\DoxyCodeLine{\Hypertarget{g__label__reiserfs_8c_source_l00125}\mbox{\hyperlink{g__label__reiserfs_8c_a0f0aa15a0d33e5cc5e4a32f57cdab912}{00125}} \mbox{\hyperlink{g__label__reiserfs_8c_a0f0aa15a0d33e5cc5e4a32f57cdab912}{G\_LABEL\_INIT}}(reiserfs, \mbox{\hyperlink{g__label__reiserfs_8c_a95bc37d8e8ceeb45cf96a5011674426f}{g\_label\_reiserfs}}, \textcolor{stringliteral}{"{}Create device nodes for REISERFS volumes"{}});}

\end{DoxyCode}
