Barcelona eased their way into the last-16 of the Copa Del Rey, while Osasuna edged out Malaga to book their progress.