mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use the directory specified by the shell environment variable TMPDIR for temporary objects creation and ngdump job simulation. If TMPDIR is not set, then use "/tmp" for the mentioned purposes; While running ngdump job in 'dry-run' mode: . Don't format/mount the target dump device. Instead, create the bootmap file and the meta-file at the temporary mount point without mounting anything to it. Thus, the mentioned files to be acrually created in the "proxy" file system owning the temporary mount point; . Retrieve base disk info from the read-only dump device and complete that info with the block size of the proxy file system; Separate the steps on retrieving/setting file system block size into a dedicated procedure; Use definitions instead of hardcoded file names; Fix a bug in an error path (accessing freed memory); Make misc_open_simulate() and misc_open_exclusive() static; Update man pages with the requirements on the system environment (resources) for ngdump job being executed in dry-run mode; Provide hints for user (in stderr) in case when ngdump job in dry-run mode failed due to inappropriate system environment. Tested-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
26 lines
539 B
C
26 lines
539 B
C
/*
|
|
* s390-tools/zipl/include/error.h
|
|
* Functions to handle error messages.
|
|
*
|
|
* Copyright IBM Corp. 2001, 2017
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*
|
|
*/
|
|
|
|
#ifndef ERROR_H
|
|
#define ERROR_H
|
|
|
|
#include "zipl.h"
|
|
|
|
|
|
void error_reason(const char* fmt, ...);
|
|
void error_text(const char* fmt, ...);
|
|
void error_clear_reason(void);
|
|
void error_clear_text(void);
|
|
void error_print(void);
|
|
int is_error(const char *this);
|
|
|
|
#endif /* not ERROR_H */
|