zipl: move logical-to-physical block mapping logic

from disk.c to a dedicated source file fs-map.c, so that the new
zipl-editenv tool will be also able to use it.

Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Eduard Shishkin
2021-03-18 16:36:58 +01:00
committed by Jan Höppner
parent 4f1c73d592
commit 296079f70a
4 changed files with 134 additions and 74 deletions
+1
View File
@@ -134,5 +134,6 @@ blocknum_t disk_get_blocklist_from_file(const char* filename,
struct disk_info* pinfo);
int disk_check_subchannel_set(int devno, dev_t device, char* dev_name);
void disk_print_geo(struct disk_info *data);
int fs_map(int fd, uint64_t offset, blocknum_t *mapped, int fs_block_size);
#endif /* not DISK_H */