Equilibrium and irreversible unzipping of DNA in a nanopore