MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfUnMountDev

Function adfUnMountDev

dep/adflib/src/adf_hd.c:648–671  ·  view source on GitHub ↗

* adfUnMountDev * */

Source from the content-addressed store, hash-verified

646 *
647 */
648void adfUnMountDev( struct Device* dev)
649{
650 int i;
651 struct nativeFunctions *nFct;
652
653 if (dev==0)
654 return;
655
656 for(i=0; i<dev->nVol; i++) {
657 free(dev->volList[i]->volName);
658 free(dev->volList[i]);
659 }
660 if (dev->nVol>0)
661 free(dev->volList);
662 dev->nVol = 0;
663
664 nFct = adfEnv.nativeFct;
665 if (dev->isNativeDev)
666 (*nFct->adfReleaseDevice)(dev);
667 else
668 adfReleaseDumpDevice(dev);
669
670 free(dev);
671}
672
673
674

Callers 1

~AdfMountMethod · 0.85

Calls 1

adfReleaseDumpDeviceFunction · 0.85

Tested by

no test coverage detected