~ubuntu-branches/ubuntu/maverick/schroot/maverick-updates

« back to all changes in this revision

Viewing changes to doc/sbuild/html/sbuild-chroot-directory_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2008-01-20 22:51:04 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120225104-3zhs8gk9byqigato
Tags: 1.1.6-1
* New upstream development release.
* Acknowledge NMU.  Thanks to Lucas Nussbaum for fixing the Boost
  library names following another incompatible change in Boost
  (Closes: #439215).
* debian/control: Suggest lvm2 instead of lvm-common (Closes: #452263).
* debian/copyright:
  - Update with new GIT source code repository location.
  - Update licence to GPLv3.
* debian/schroot.init: Update licence to GPLv3.
* bin/schroot/setup/20network, bin/schroot/setup/30passwd: For files to
  copy, compare file device, inode and contents to avoid copying
  identical files (Closes: #428808).
* If unknown keys are present in the configuration file, print a warning
  message to alert the user (Closes: #459658).
* The filesystems to mount in the chroot may be customised by the system
  administrator through the use of an fstab file on a per-chroot basis,
  and a new helper utility, schroot-mount (Closes: #395062, #427047).
  Thanks for your patience while we took the time to implement this the
  right way.
* Update Vietnamese translation (Closes: #461531).  Thanks to Clytie
  Siddall.
* debian/schroot.preinst: Add rm_conffile function to remove
  /etc/schroot/setup.d/20network and /etc/schroot/setup.d/30passwd for
  versions prior to this.  These are replaced by
  /etc/schroot/setup.d/20copyfiles.
* debian/schroot.NEWS: Document conffile changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.5.2 -->
 
7
<!-- Generated by Doxygen 1.5.4 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15
15
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16
16
  </ul>
17
17
</div>
18
 
<div class="tabs">
19
 
  <ul>
20
 
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
21
 
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
22
 
  </ul>
23
 
</div>
24
18
<div class="nav">
25
 
<a class="el" href="dir_36aac8d1c7bf732cea07a0b0393c7c3f.html">sbuild</a></div>
26
 
<h1>sbuild-chroot-directory.h</h1><a href="sbuild-chroot-directory_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright © 2005-2007  Roger Leigh &lt;rleigh@debian.org&gt;</span>
 
19
<a class="el" href="dir_69e915d0cf43b57ac9a6fadbc8187729.html">sbuild</a></div>
 
20
<h1>sbuild-chroot-directory.h</h1><a href="sbuild-chroot-directory_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright © 2005-2008  Roger Leigh &lt;rleigh@debian.org&gt;</span>
27
21
<a name="l00002"></a>00002 <span class="comment"> *</span>
28
 
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software; you can redistribute it and/or modify it</span>
 
22
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software: you can redistribute it and/or modify it</span>
29
23
<a name="l00004"></a>00004 <span class="comment"> * under the terms of the GNU General Public License as published by</span>
30
 
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
 
24
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
31
25
<a name="l00006"></a>00006 <span class="comment"> * (at your option) any later version.</span>
32
26
<a name="l00007"></a>00007 <span class="comment"> *</span>
33
27
<a name="l00008"></a>00008 <span class="comment"> * schroot is distributed in the hope that it will be useful, but</span>
36
30
<a name="l00011"></a>00011 <span class="comment"> * General Public License for more details.</span>
37
31
<a name="l00012"></a>00012 <span class="comment"> *</span>
38
32
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
39
 
<a name="l00014"></a>00014 <span class="comment"> * along with this program; if not, write to the Free Software</span>
40
 
<a name="l00015"></a>00015 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston,</span>
41
 
<a name="l00016"></a>00016 <span class="comment"> * MA  02111-1307  USA</span>
42
 
<a name="l00017"></a>00017 <span class="comment"> *</span>
43
 
<a name="l00018"></a>00018 <span class="comment"> *********************************************************************/</span>
44
 
<a name="l00019"></a>00019 
45
 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef SBUILD_CHROOT_DIRECTORY_H</span>
46
 
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_CHROOT_DIRECTORY_H</span>
47
 
<a name="l00022"></a>00022 <span class="preprocessor"></span>
48
 
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-chroot_8h.html">sbuild/sbuild-chroot.h</a>&gt;</span>
49
 
<a name="l00024"></a>00024 
50
 
<a name="l00025"></a>00025 <span class="keyword">namespace </span>sbuild
51
 
<a name="l00026"></a>00026 {
52
 
<a name="l00027"></a>00027 
53
 
<a name="l00031"></a><a class="code" href="classsbuild_1_1chroot__directory.html">00031</a>   <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot__directory.html" title="A chroot located in the filesystem.">chroot_directory</a> : <span class="keyword">virtual</span> <span class="keyword">public</span> <a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>
54
 
<a name="l00032"></a>00032   {
55
 
<a name="l00033"></a>00033   <span class="keyword">protected</span>:
56
 
<a name="l00035"></a>00035     <a class="code" href="classsbuild_1_1chroot__directory.html#8d231751fe13aa85f73745c4e275e0a5" title="The constructor.">chroot_directory</a> ();
57
 
<a name="l00036"></a>00036 
58
 
<a name="l00037"></a><a class="code" href="classsbuild_1_1chroot__directory.html#d93ec14845f07d687e98a51953056cd6">00037</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>;
59
 
<a name="l00038"></a>00038 
60
 
<a name="l00039"></a>00039   <span class="keyword">public</span>:
61
 
<a name="l00041"></a>00041     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot__directory.html#3f7d02f41d2a9e9ba4892732bc80552f" title="The destructor.">~chroot_directory</a> ();
62
 
<a name="l00042"></a>00042 
63
 
<a name="l00043"></a>00043     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">chroot::ptr</a>
64
 
<a name="l00044"></a>00044     <a class="code" href="classsbuild_1_1chroot__directory.html#197dee651ceb0f6e3eb79c0d0a9a4d09" title="Copy the chroot.">clone</a> () <span class="keyword">const</span>;
65
 
<a name="l00045"></a>00045 
66
 
<a name="l00051"></a>00051     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
67
 
<a name="l00052"></a>00052     <a class="code" href="classsbuild_1_1chroot__directory.html#b572a0ea52c02809cbd3bef5b85561bd" title="Get the directory location of the chroot.">get_location</a> () <span class="keyword">const</span>;
68
 
<a name="l00053"></a>00053 
69
 
<a name="l00059"></a>00059     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
70
 
<a name="l00060"></a>00060     <a class="code" href="classsbuild_1_1chroot__directory.html#b43d23d17de5eccfd3f67d63f111720a" title="Set the directory location of the chroot.">set_location</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1" title="Location inside the mount location root.">location</a>);
71
 
<a name="l00061"></a>00061 
72
 
<a name="l00062"></a>00062     <span class="keyword">virtual</span> std::string
73
 
<a name="l00063"></a>00063     <a class="code" href="classsbuild_1_1chroot__directory.html#a257f1a33c823efe2f19122fccb62e3d" title="Get the path to the chroot.">get_path</a> () <span class="keyword">const</span>;
74
 
<a name="l00064"></a>00064 
75
 
<a name="l00065"></a>00065     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
76
 
<a name="l00066"></a>00066     <a class="code" href="classsbuild_1_1chroot__directory.html#97effa19732a557498122ea891842c98" title="Get the type of the chroot.">get_chroot_type</a> () <span class="keyword">const</span>;
77
 
<a name="l00067"></a>00067 
78
 
<a name="l00068"></a>00068     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
79
 
<a name="l00069"></a>00069     <a class="code" href="classsbuild_1_1chroot__directory.html#976e05ff930651516f592cfa9908536b" title="Get the session flags of the chroot.">get_session_flags</a> () <span class="keyword">const</span>;
80
 
<a name="l00070"></a>00070 
81
 
<a name="l00071"></a>00071   <span class="keyword">protected</span>:
82
 
<a name="l00072"></a>00072     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
83
 
<a name="l00073"></a>00073     <a class="code" href="classsbuild_1_1chroot__directory.html#d5f20b39e25d8cd05972a81738e42e65" title="Unlock a chroot during setup.">setup_lock</a> (<a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9" title="Type of setup to perform.">chroot::setup_type</a> type,
84
 
<a name="l00074"></a>00074                 <span class="keywordtype">bool</span>               <a class="code" href="classsbuild_1_1lock.html" title="Advisory locking.">lock</a>,
85
 
<a name="l00075"></a>00075                 <span class="keywordtype">int</span>                status);
86
 
<a name="l00076"></a>00076 
87
 
<a name="l00077"></a>00077     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
88
 
<a name="l00078"></a>00078     <a class="code" href="classsbuild_1_1chroot__directory.html#6398c2d522e014636d7b3b61b7da2920" title="Get detailed information about the chroot for output.">get_details</a> (<a class="code" href="classsbuild_1_1format__detail.html" title="Format names and values for output.">format_detail</a>&amp; detail) <span class="keyword">const</span>;
89
 
<a name="l00079"></a>00079 
90
 
<a name="l00080"></a>00080     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
91
 
<a name="l00081"></a>00081     <a class="code" href="classsbuild_1_1chroot__directory.html#0366235a4a124a1a385d1cc67afa906e" title="Copy the chroot properties into a keyfile.">get_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>) <span class="keyword">const</span>;
92
 
<a name="l00082"></a>00082 
93
 
<a name="l00083"></a>00083     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
94
 
<a name="l00084"></a>00084     <a class="code" href="classsbuild_1_1chroot__directory.html#d028550b3e8c5442044174b90258aa1e" title="Set the chroot properties from a keyfile.">set_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>);
95
 
<a name="l00085"></a>00085   };
96
 
<a name="l00086"></a>00086 
97
 
<a name="l00087"></a>00087 }
98
 
<a name="l00088"></a>00088 
99
 
<a name="l00089"></a>00089 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_CHROOT_DIRECTORY_H */</span>
100
 
<a name="l00090"></a>00090 
101
 
<a name="l00091"></a>00091 <span class="comment">/*</span>
102
 
<a name="l00092"></a>00092 <span class="comment"> * Local Variables:</span>
103
 
<a name="l00093"></a>00093 <span class="comment"> * mode:C++</span>
104
 
<a name="l00094"></a>00094 <span class="comment"> * End:</span>
105
 
<a name="l00095"></a>00095 <span class="comment"> */</span>
106
 
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 8 21:23:22 2007 for sbuild by&nbsp;
 
33
<a name="l00014"></a>00014 <span class="comment"> * along with this program.  If not, see</span>
 
34
<a name="l00015"></a>00015 <span class="comment"> * &lt;http://www.gnu.org/licenses/&gt;.</span>
 
35
<a name="l00016"></a>00016 <span class="comment"> *</span>
 
36
<a name="l00017"></a>00017 <span class="comment"> *********************************************************************/</span>
 
37
<a name="l00018"></a>00018 
 
38
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef SBUILD_CHROOT_DIRECTORY_H</span>
 
39
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_CHROOT_DIRECTORY_H</span>
 
40
<a name="l00021"></a>00021 <span class="preprocessor"></span>
 
41
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-chroot_8h.html">sbuild/sbuild-chroot.h</a>&gt;</span>
 
42
<a name="l00023"></a>00023 
 
43
<a name="l00024"></a>00024 <span class="keyword">namespace </span>sbuild
 
44
<a name="l00025"></a>00025 {
 
45
<a name="l00026"></a>00026 
 
46
<a name="l00030"></a><a class="code" href="classsbuild_1_1chroot__directory.html">00030</a>   <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot__directory.html" title="A chroot located in the filesystem.">chroot_directory</a> : <span class="keyword">virtual</span> <span class="keyword">public</span> <a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>
 
47
<a name="l00031"></a>00031   {
 
48
<a name="l00032"></a>00032   <span class="keyword">protected</span>:
 
49
<a name="l00034"></a>00034     <a class="code" href="classsbuild_1_1chroot__directory.html#8d231751fe13aa85f73745c4e275e0a5" title="The constructor.">chroot_directory</a> ();
 
50
<a name="l00035"></a>00035 
 
51
<a name="l00036"></a><a class="code" href="classsbuild_1_1chroot__directory.html#d93ec14845f07d687e98a51953056cd6">00036</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>;
 
52
<a name="l00037"></a>00037 
 
53
<a name="l00038"></a>00038   <span class="keyword">public</span>:
 
54
<a name="l00040"></a>00040     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot__directory.html#3f7d02f41d2a9e9ba4892732bc80552f" title="The destructor.">~chroot_directory</a> ();
 
55
<a name="l00041"></a>00041 
 
56
<a name="l00042"></a>00042     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">chroot::ptr</a>
 
57
<a name="l00043"></a>00043     <a class="code" href="classsbuild_1_1chroot__directory.html#fe898b8361264d799d36d691af88d02d" title="Copy the chroot.">clone</a> () <span class="keyword">const</span>;
 
58
<a name="l00044"></a>00044 
 
59
<a name="l00050"></a>00050     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
 
60
<a name="l00051"></a>00051     <a class="code" href="classsbuild_1_1chroot__directory.html#eb8d38fe904d6f6128d6ce76801470b9" title="Get the directory location of the chroot.">get_location</a> () <span class="keyword">const</span>;
 
61
<a name="l00052"></a>00052 
 
62
<a name="l00058"></a>00058     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
63
<a name="l00059"></a>00059     <a class="code" href="classsbuild_1_1chroot__directory.html#b43d23d17de5eccfd3f67d63f111720a" title="Set the directory location of the chroot.">set_location</a> (std::string <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#efbc5a3c1c7d5cb7a349f70bebaccac1" title="Location inside the mount location root.">location</a>);
 
64
<a name="l00060"></a>00060 
 
65
<a name="l00061"></a>00061     <span class="keyword">virtual</span> std::string
 
66
<a name="l00062"></a>00062     <a class="code" href="classsbuild_1_1chroot__directory.html#87254fb5292d316048df8ee600d8be76" title="Get the path to the chroot.">get_path</a> () <span class="keyword">const</span>;
 
67
<a name="l00063"></a>00063 
 
68
<a name="l00064"></a>00064     <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&amp;
 
69
<a name="l00065"></a>00065     <a class="code" href="classsbuild_1_1chroot__directory.html#9a51918e6db4c21e2b33d1bb3756988e" title="Get the type of the chroot.">get_chroot_type</a> () <span class="keyword">const</span>;
 
70
<a name="l00066"></a>00066 
 
71
<a name="l00067"></a>00067     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
 
72
<a name="l00068"></a>00068     <a class="code" href="classsbuild_1_1chroot__directory.html#7c2d39f3bd4a49fa79fce57042f56f30" title="Get the session flags of the chroot.">get_session_flags</a> () <span class="keyword">const</span>;
 
73
<a name="l00069"></a>00069 
 
74
<a name="l00070"></a>00070   <span class="keyword">protected</span>:
 
75
<a name="l00071"></a>00071     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
76
<a name="l00072"></a>00072     <a class="code" href="classsbuild_1_1chroot__directory.html#d5f20b39e25d8cd05972a81738e42e65" title="Unlock a chroot during setup.">setup_lock</a> (<a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9" title="Type of setup to perform.">chroot::setup_type</a> type,
 
77
<a name="l00073"></a>00073                 <span class="keywordtype">bool</span>               <a class="code" href="classsbuild_1_1lock.html" title="Advisory locking.">lock</a>,
 
78
<a name="l00074"></a>00074                 <span class="keywordtype">int</span>                status);
 
79
<a name="l00075"></a>00075 
 
80
<a name="l00076"></a>00076     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
81
<a name="l00077"></a>00077     <a class="code" href="classsbuild_1_1chroot__directory.html#6398c2d522e014636d7b3b61b7da2920" title="Get detailed information about the chroot for output.">get_details</a> (<a class="code" href="classsbuild_1_1format__detail.html" title="Format names and values for output.">format_detail</a>&amp; detail) <span class="keyword">const</span>;
 
82
<a name="l00078"></a>00078 
 
83
<a name="l00079"></a>00079     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
84
<a name="l00080"></a>00080     <a class="code" href="classsbuild_1_1chroot__directory.html#c683ebce3e1c9fa8fe28a3b7e370d03f" title="Copy the chroot properties into a keyfile.">get_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>) <span class="keyword">const</span>;
 
85
<a name="l00081"></a>00081 
 
86
<a name="l00082"></a>00082     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
 
87
<a name="l00083"></a>00083     <a class="code" href="classsbuild_1_1chroot__directory.html#8bed95e72bf2020a20d24ed7414a87b2" title="Set the chroot properties from a keyfile.">set_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
 
88
<a name="l00084"></a>00084                  <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>&amp;   used_keys);
 
89
<a name="l00085"></a>00085 
 
90
<a name="l00086"></a>00086   };
 
91
<a name="l00087"></a>00087 
 
92
<a name="l00088"></a>00088 }
 
93
<a name="l00089"></a>00089 
 
94
<a name="l00090"></a>00090 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_CHROOT_DIRECTORY_H */</span>
 
95
<a name="l00091"></a>00091 
 
96
<a name="l00092"></a>00092 <span class="comment">/*</span>
 
97
<a name="l00093"></a>00093 <span class="comment"> * Local Variables:</span>
 
98
<a name="l00094"></a>00094 <span class="comment"> * mode:C++</span>
 
99
<a name="l00095"></a>00095 <span class="comment"> * End:</span>
 
100
<a name="l00096"></a>00096 <span class="comment"> */</span>
 
101
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 21 00:37:45 2008 for sbuild by&nbsp;
107
102
<a href="http://www.doxygen.org/index.html">
108
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
 
103
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
109
104
</body>
110
105
</html>