Adding partition check

what about putting this at the top of the file as a module lvl function? its pretty big for an inline function and then people could reuse it. it can just raise the DiskFileQuarantined instead of calling raise_dfq,