On Tue, May 23, 2023 at 10:44:15 AM -0700, Darrick J. Wong wrote: > On Tue, May 23, 2023 at 02:30:43PM +0530, Chandan Babu R wrote: >> This commit moves functionality associated with opening the target device, >> reading metadump header information and printing information about the >> metadump into their respective functions. > > "No functional changes"? > Yes, this commit does not include any functional changes. I will update the commit message to reflect this fact. >> Signed-off-by: Chandan Babu R <chandan.babu@xxxxxxxxxx> >> --- >> mdrestore/xfs_mdrestore.c | 114 +++++++++++++++++++++++--------------- >> 1 file changed, 68 insertions(+), 46 deletions(-) >> >> diff --git a/mdrestore/xfs_mdrestore.c b/mdrestore/xfs_mdrestore.c >> index de9175a08..8c847c5a3 100644 >> --- a/mdrestore/xfs_mdrestore.c >> +++ b/mdrestore/xfs_mdrestore.c >> @@ -40,8 +40,67 @@ print_progress(const char *fmt, ...) >> mdrestore.progress_since_warning = 1; >> } >> >> +extern int platform_check_ismounted(char *, char *, struct stat *, int); > > #include <libfrog/platform.h> ? I will include the above mentioned header file. -- chandan