Files
s390-tools/zdump/ngdump.h
Mikhail Zaslonko 47b0960cc7 zdump: Make ngdump_get_part_path() public
Make ngdump_get_part_path() public in order for unit-tests to access it.

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
2024-03-15 15:11:34 +01:00

34 lines
779 B
C

/*
* zgetdump - Tool for copying and converting System z dumps
*
* NGDump dump tool
*
* Copyright IBM Corp. 2021
*
* 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 ZGETDUMP_NGDUMP_H
#define ZGETDUMP_NGDUMP_H
#define NGDUMP_FSTYPE "ext4"
struct ngdump_meta {
int version;
const char *file;
const char *sha256sum;
};
enum ngdump_disk_type {
NG_TYPE_DASD,
NG_TYPE_NVME,
};
int ngdump_read_meta_from_device(const char *device, struct ngdump_meta *meta);
int ngdump_get_dump_part(struct zg_fh *zg_fh, char **part_path);
int ngdump_get_part_path(const char *disk_path, int part_num,
enum ngdump_disk_type ng_type, char **part_path);
#endif /* ZGETDUMP_NGDUMP_H */