<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Checking Out Source Code</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="LVM HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Acquiring LVM" HREF="getlvm.html"><LINK REL="PREVIOUS" TITLE="Initial Setup" HREF="initsetup.html"><LINK REL="NEXT" TITLE="Code Updates" HREF="codeupdate.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >LVM HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="initsetup.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 5. Acquiring LVM</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="codeupdate.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="checkoutsource" ></A >5.5. Checking Out Source Code</H1 ><P ></P ><UL ><LI ><P > <STRONG >Device Mapper library and tools</STRONG > </P ><P > The device mapper library is required to build LVM 2. </P ><P > The first time you download from cvs, you must login <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" > # cvs -d :pserver:cvs@sources.redhat.com:/cvs/dm login cvs </B > </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > The password is `cvs'. The command outputs nothing if successful and an error message if it fails. Only an initial login is required. All subsequent CVS commands read the password stored in the file <TT CLASS="filename" >$HOME/.cvspass</TT > for authentication. </P ><P > Use the following to check out a copy of the code </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" > # cvs -d :pserver:cvs@sources.redhat.com:/cvs/dm checkout device-mapper </B > </PRE ></FONT ></TD ></TR ></TABLE ><P > This will create a new directory <TT CLASS="filename" >device-mapper</TT > in your current directory containing the latest, up-to-the-minute device mapper code. </P ></LI ><LI ><P > <STRONG >LVM 2</STRONG > </P ><P > The first time you download from cvs, you must login <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" > # cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 login cvs </B > </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > The password is `cvs'. The command outputs nothing if successful and an error message if it fails. Only an initial login is required. All subsequent CVS commands read the password stored in the file <TT CLASS="filename" >$HOME/.cvspass</TT > for authentication. </P ><P > Use the following to check out a copy of the code </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" > # cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 checkout LVM2 </B > </PRE ></FONT ></TD ></TR ></TABLE ><P > This will create a new directory <TT CLASS="filename" >LVM2</TT > in your current directory containing the latest, up-to-the-minute LVM 2 code. </P ></LI ><LI ><P > <STRONG >LVM 1</STRONG > </P ><P > The first time you download from cvs, you must login <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" > # cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm login cvs </B > </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > The password is `cvs'. The command outputs nothing if successful and an error message if it fails. Only an initial login is required. All subsequent CVS commands read the password stored in the file <TT CLASS="filename" >$HOME/.cvspass</TT > for authentication. </P ><P > Use the following to check out a copy of the code </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" > # cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm checkout LVM </B > </PRE ></FONT ></TD ></TR ></TABLE ><P > This will create a new directory <TT CLASS="filename" >LVM</TT > in your current directory containing the latest, up-to-the-minute LVM 1 code. </P ></LI ></UL ><P > CVS commands work from <EM >anywhere</EM > inside the source tree, and recurse downward. So if you happen to issue an update from inside the `tools' subdirectory it will work fine, but only update the tools directory and it's subdirectories. In the following command examples it is assumed that you are at the top of the source tree. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="initsetup.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="codeupdate.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Initial Setup</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="getlvm.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Code Updates</TD ></TR ></TABLE ></DIV ></BODY ></HTML >