Data not freed after remove?

Richard Weinberger richard.weinberger at gmail.com
Tue Jun 14 09:17:14 PDT 2016


Sven,

On Fri, Jun 3, 2016 at 10:16 AM, Sven Eisenberg
<sven.eisenberg at novero.com> wrote:
>> Yes, remount can fail if the volume is busy. That's why i wonder what
>> the return code is.
>
> Yes the volume is busy:
> mount -o remount,ro /mnt/point  = -1 EBUSY (Device or resource busy)
>
> I could not yet identify why it is in busy state.
>
> I added some code to check for open file descriptors. I built a test
> application which simulates the sequence. But it runs without a problem.
> Can i get informations from the kernel, what file or state causes the
> busy state?

EBUSY can have many reasons. I'd guess an open file in RW mode.
Did you try lsof?

-- 
Thanks,
//richard



More information about the linux-mtd mailing list