This file is indexed.

/usr/share/augeas/lenses/dist/tests/test_lvm.aug is in augeas-lenses 1.2.0-0ubuntu1.3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
(*
Module: Test_LVM
  Provides unit tests and examples for the <LVM> lens.
*)

module Test_LVM =

(* Variable: conf
   A full configuration file *)
let conf = "# Generated by LVM2: date

contents = \"Text Format Volume Group\"
version = 1

description = \"Created *after* executing 'eek'\"

creation_host = \"eek\"		# Linux eek
creation_time = 6666666666	# eeeek

VG1 {
	id = \"uuid-uuid-uuid-uuid\"
	seqno = 2
	status = [\"RESIZEABLE\", \"READ\", \"WRITE\"]
	extent_size = 8192		# 4 Megabytes
	max_lv = 0
	max_pv = 0

	physical_volumes {
		pv0 {
			id = \"uuid-uuid-uuid-uuid\"
			device = \"/dev/sda6\"	# Hint only

			status = [\"ALLOCATABLE\"]
			pe_start = 123
			pe_count = 123456	# many Gigabytes
		}
	}

	logical_volumes {
		LogicalEek {
			id = \"uuid-uuid-uuid-uuid\"
			status = [\"READ\", \"WRITE\", \"VISIBLE\"]
			segment_count = 1

			segment1 {
				start_extent = 0
				extent_count = 123456	# beaucoup Gigabytes

				type = \"striped\"
				stripe_count = 1	# linear

				stripes = [
					\"pv0\", 0
				]
			}
		}
	}
}
"

test LVM.int get "5" = { "int" = "5" }
test LVM.str get "\"abc\"" = { "str" = "abc"}
test LVM.lns get "\n" = {}
test LVM.lns get "#foo\n" = { "#comment" = "foo"}

test LVM.lns get "# Generated by LVM2: date

contents = \"Text Format Volume Group\"
version = 1

description = \"Created *after* executing 'eek'\"

creation_host = \"eek\"		# Linux eek
creation_time = 6666666666	# eeeek\n" =
	{ "#comment" = "Generated by LVM2: date" }
	{}
	{ "contents"
		{ "str" = "Text Format Volume Group" }
	}
	{ "version"
		{ "int" = "1" }
	}
	{}
	{ "description"
		{ "str" = "Created *after* executing 'eek'" }
	}
	{}
	{ "creation_host"
		{ "str" = "eek" }
		{ "#comment" = "Linux eek" }
	}
	{ "creation_time"
		{ "int" = "6666666666" }
		{ "#comment" = "eeeek" }
	}

(* Test: LVM.lns
   Test the full <conf> *)
test LVM.lns get conf =
	{ "#comment" = "Generated by LVM2: date" }
	{}
	{ "contents"
		{ "str" = "Text Format Volume Group" }
	}
	{ "version"
		{ "int" = "1" }
	}
	{}
	{ "description"
		{ "str" = "Created *after* executing 'eek'" }
	}
	{}
	{ "creation_host"
		{ "str" = "eek" }
		{ "#comment" = "Linux eek" }
	}
	{ "creation_time"
		{ "int" = "6666666666" }
		{ "#comment" = "eeeek" }
	}
	{}
	{ "VG1"
		{ "dict"
			{ "id"
				{ "str" = "uuid-uuid-uuid-uuid" }
			}
			{ "seqno"
				{ "int" = "2" }
			}
			{ "status"
				{ "list"
					{ "1"
						{ "str" = "RESIZEABLE" }
					}
					{ "2"
						{ "str" = "READ" }
					}
					{ "3"
						{ "str" = "WRITE" }
					}
				}
			}
			{ "extent_size"
				{ "int" = "8192" }
				{ "#comment" = "4 Megabytes" }
			}
			{ "max_lv"
				{ "int" = "0" }
			}
			{ "max_pv"
				{ "int" = "0" }
			}
			{}
			{ "physical_volumes"
				{ "dict"
					{ "pv0"
						{ "dict"
							{ "id"
								{ "str" = "uuid-uuid-uuid-uuid" }
							}
							{ "device"
								{ "str" = "/dev/sda6" }
								{ "#comment" = "Hint only" }
							}
							{}
							{ "status"
								{ "list"
									{ "1"
										{ "str" = "ALLOCATABLE" }
									}
								}
							}
							{ "pe_start"
								{ "int" = "123" }
							}
							{ "pe_count"
								{ "int" = "123456" }
								{ "#comment" = "many Gigabytes" }
							}
						}
					}
				}
			}
			{}
			{ "logical_volumes"
				{ "dict"
					{ "LogicalEek"
						{ "dict"
							{ "id"
								{ "str" = "uuid-uuid-uuid-uuid" }
							}
							{ "status"
								{ "list"
									{ "1"
										{ "str" = "READ" }
									}
									{ "2"
										{ "str" = "WRITE" }
									}
									{ "3"
										{ "str" = "VISIBLE" }
									}
								}
							}
							{ "segment_count"
								{ "int" = "1" }
							}
							{}
							{ "segment1"
								{ "dict"
									{ "start_extent"
										{ "int" = "0" }
									}
									{ "extent_count"
										{ "int" = "123456" }
										{ "#comment" = "beaucoup Gigabytes" }
									}
									{}
									{ "type"
										{ "str" = "striped" }
									}
									{ "stripe_count"
										{ "int" = "1" }
										{ "#comment" = "linear" }
									}
									{}
									{ "stripes"
										{ "list"
											{ "1"
												{ "str" = "pv0" }
											}
											{ "2"
												{ "int" = "0" }
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}

(* Parse description from RHEL 6 *)
let descr="\"Created *before* executing '/sbin/vgs --noheadings -o name --config 'log{command_names=0 prefix=\\\"  \\\"}''\""
test LVM.str get descr =
  { "str" = "Created *before* executing '/sbin/vgs --noheadings -o name --config 'log{command_names=0 prefix=\\\"  \\\"}''" }