title: Can I modify a disk image while it is open, but not "save changes"?
body: <p>I have a script where I create a disk image of an SD card using <code>hdiutil</code> and then mount that disk image.  I then write extended attributes to the files inside using <code>xattr</code> and important them into a program.  Is there any way I can reverse those <code>xattr</code> writes so they don't save when I unmount the image?  Ideally I'd keep an untouched copy of the SD card for archive.  Is there a way to mount a disk image, make changes to the files inside, then unmount it and those changes aren't "Saved"?  I'm trying to avoid copying the SD card twice for time reasons.</p>