This PR fixes issue #74650. It adds the extra check for /mount dir under pod volume dir. It also adds the unit test for this function