mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-03 18:46:00 -04:00

probe_device_max_blocks() was returning an int that once multiplied by block_size was out range. This patch just enforces probe_device_max_blocks() to return an uint64_t, and does the needed adjustments in the code.
15 lines
360 B
C
15 lines
360 B
C
#ifndef HEADER_LIBPROBE_H
|
|
#define HEADER_LIBPROBE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "libdevs.h"
|
|
|
|
uint64_t probe_device_max_blocks(struct device *dev);
|
|
|
|
int probe_device(struct device *dev, uint64_t *preal_size_byte,
|
|
uint64_t *pannounced_size_byte, int *pwrap,
|
|
uint64_t *pcache_size_block, int *pneed_reset, int *pblock_order);
|
|
|
|
#endif /* HEADER_LIBPROBE_H */
|