Skip to content

Commit dc4a7b5

Browse files
fixup
1 parent ddad2d0 commit dc4a7b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app/shared/commands/configure/hugetlbfs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@ fini( config_t const * config,
318318
}
319319

320320
/* The normal pages mount directory is not a hugetlbfs mount, so we need to handle it separately. */
321+
/* In some cases, the normal pages mount directory has been mounted by a different process, so we
322+
umount it just to be on the safe side. */
323+
if( FD_UNLIKELY( !umount( config->hugetlbfs.normal_page_mount_path ) ) ) {
324+
FD_LOG_DEBUG(( "error unmounting hugetlbfs normal pages directory at `%s` (%i-%s). this is expected in normal operation",
325+
config->hugetlbfs.normal_page_mount_path, errno, fd_io_strerror( errno ) ));
326+
}
321327
if( FD_UNLIKELY( empty_dir_top_level(config->hugetlbfs.normal_page_mount_path) && errno != ENOENT ) )
322328
FD_LOG_ERR(( "error emptying hugetlbfs normal pages directory at `%s` (%i-%s)",
323329
config->hugetlbfs.normal_page_mount_path, errno, fd_io_strerror(errno) ));

0 commit comments

Comments
 (0)