Re: Fix the error message when failing to restore the snapshot

2023-08-22 Thread Amit Kapila
On Tue, Aug 22, 2023 at 6:09 PM Zhijie Hou (Fujitsu) wrote: > > While testing the logical snapshot restore functionality, I noticed the > data size reported in the error message seems not correct. > > I think it's because we used a const value here: > > SnapBuildRestoreContents(int fd, char *dest,

Fix the error message when failing to restore the snapshot

2023-08-22 Thread Zhijie Hou (Fujitsu)
Hi, While testing the logical snapshot restore functionality, I noticed the data size reported in the error message seems not correct. I think it's because we used a const value here: SnapBuildRestoreContents(int fd, char *dest, Size size, const char *path) ... readBytes = read(fd, dest,