<br><div class="gmail_quote">On Fri, Sep 2, 2011 at 2:53 PM, Michael Tautschnig <span dir="ltr"><<a href="mailto:mt@debian.org" target="_blank">mt@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi again,<br>
<br>
[...]<br>
<div>><br>
> I have noticed that the schema on the wiki is outdated, and sometimes not<br>
> functional even. With the lens in the current state, I've been able to<br>
> successfully parse 477 disk_config files we use in production. I'd be happy<br>
> to get more tricky cases to test if you wish to send some to me.<br>
><br>
<br>
</div>I think the following three examples should be of such nature:<br>
<br>
Config 1:<br>
<br>
disk_config disk1 bootable:1 preserve_always:all always_format:5,6,7,8,9,10,11<br></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
primary - 0 - -<br>
primary - 0 - -<br>
logical / 0 ext3 rw,relatime,errors=remount-ro createopts="-c -j"<br>
logical swap 0 swap sw<br>
logical /var 0 ext3 rw,relatime createopts="-m 5 -j"<br>
logical /tmp 0 ext3 rw createopts="-m 0 -j"<br>
logical /usr 0 ext3 rw,relatime createopts="-j"<br>
logical /home 0 ext3 rw,relatime,nosuid,nodev createopts="-m 1 -j"<br>
logical /wrk 0 ext3 rw,relatime,nosuid,nodev createopts="-m 1 -j"<br>
logical /transfer 0 vfat rw<br>
<br>
<br>
Config 2:<br>
<br>
disk_config /dev/sda<br>
primary - 250M - -<br>
primary - 20G - -<br>
logical - 8G - -<br>
logical - 4G - -<br>
logical - 5G - -<br>
<br>
disk_config /dev/sdb sameas:/dev/sda<br>
<br>
disk_config raid<br>
raid1 /boot sda1,sdb1 ext3 defaults<br>
raid1 / sda2,sdb2 ext3 defaults,errors=remount-ro<br>
raid1 swap sda5,sdb5 swap defaults<br>
raid1 /tmp sda6,sdb6 ext3 defaults createopts="-m 1"<br>
raid1 /var sda7,sdb7 ext3 defaults<br>
<br>
<br>
Config 3:<br>
<br>
disk_config /dev/sdb<br>
primary / 21750 ext3 defaults,errors=remount-ro<br>
primary /boot 250 ext3 defaults<br>
logical - 4000 - -<br>
logical - 2000 - -<br>
logical - 10- - -<br>
<br>
disk_config cryptsetup randinit<br>
swap swap /dev/sdb5 swap defaults<br>
tmp /tmp /dev/sdb6 ext2 defaults<br>
luks /local00 /dev/sdb7 ext3 defaults,errors=remount-ro createopts="-m 0"<br>
<br>
<br></blockquote><div><br>I updated the lens to support these examples. See [0] to see how they are parsed by Augeas.<br><br><br>Cheers,<br><br><br>Raphaël<br><br><br>[0] <a href="http://git.fedorahosted.org/git/?p=augeas.git;a=blob;f=lenses/tests/test_fai_diskconfig.aug;h=f35feda5e3118692d29c0b45dc6685735f8ff4eb;hb=11c16475a064ce20edd19a7bf8a998e4fcb5e571">http://git.fedorahosted.org/git/?p=augeas.git;a=blob;f=lenses/tests/test_fai_diskconfig.aug;h=f35feda5e3118692d29c0b45dc6685735f8ff4eb;hb=11c16475a064ce20edd19a7bf8a998e4fcb5e571</a><br>
<br><br>
</div></div>