1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add LVM2 version to 'Generated by' comment in metadata.

This commit is contained in:
Alasdair Kergon 2007-11-04 19:16:34 +00:00
parent b7940c98c1
commit 2b0249ec42
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.29 -
==================================
Add LVM2 version to 'Generated by' comment in metadata.
Fix error message when fixing up PV size in lvm2 metadata (2.02.11).
Fix orphan-related locking in pvdisplay and pvs.
Fix missing VG unlocks in some pvchange error paths.

View File

@ -20,6 +20,7 @@
#include "lvm-string.h"
#include "segtype.h"
#include "text_export.h"
#include "version.h"
#include <stdarg.h>
#include <time.h>
@ -290,7 +291,7 @@ static int _print_header(struct formatter *f,
t = time(NULL);
outf(f, "# Generated by LVM2: %s", ctime(&t));
outf(f, "# Generated by LVM2 version %s: %s", LVM_VERSION, ctime(&t));
outf(f, CONTENTS_FIELD " = \"" CONTENTS_VALUE "\"");
outf(f, FORMAT_VERSION_FIELD " = %d", FORMAT_VERSION_VALUE);
outnl(f);