Effect of pore geometry on a confined hard sphere fluid