mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 10:25:13 +03:00
metadata: Reinstate system info in metadata.
Revert part of cac0722cac
This was deliberate and aids the investigation of problems.
This commit is contained in:
parent
513fd029a6
commit
3366baf076
@ -329,7 +329,6 @@ static int _print_header(struct formatter *f,
|
||||
{
|
||||
char *buf;
|
||||
time_t t;
|
||||
char com[PATH_MAX];
|
||||
|
||||
t = time(NULL);
|
||||
|
||||
@ -345,10 +344,9 @@ static int _print_header(struct formatter *f,
|
||||
}
|
||||
outf(f, "description = \"%s\"", dm_escape_double_quotes(buf, desc));
|
||||
outnl(f);
|
||||
(void) dm_snprintf(com, sizeof(com), "# %s %s %s %s %s",
|
||||
_utsname.sysname, _utsname.nodename, _utsname.release,
|
||||
_utsname.version, _utsname.machine);
|
||||
outfc(f, com, "creation_host = \"%s\"", _utsname.nodename);
|
||||
outf(f, "creation_host = \"%s\"\t# %s %s %s %s %s", _utsname.nodename,
|
||||
_utsname.sysname, _utsname.nodename, _utsname.release,
|
||||
_utsname.version, _utsname.machine);
|
||||
outf(f, "creation_time = %lu\t# %s", t, ctime(&t));
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user