Casting Shillelagh on a quarterstaff removes any damage types associated with the weapon (like adamantine, or good) other than bludgeon and magic. These properties are NOT recovered when the spell wears off, after shrining, or even after quest completion, it requires re-logging.
Pretty annoying when you're at the start of a 45 minute raid and suddenly find you can't break DR...