umount and data is lost?

umount and data is lost?

Daniel Shahaf d.s at daniel.shahaf.name
Sun Nov 6 07:24:50 IST 2011


On Sunday, November 06, 2011 8:21 AM, "Amos Shapira" <amos.shapira at gmail.com> wrote:
> On 6 November 2011 08:12, Diego <elcuco at kde.org> wrote:
> >  * disk is umounted using system("umount /data"), and then I call from C to
> > sync();
> >
> 
> Why not a direct umount(2) call?

Do you check the return value of system()?



More information about the Linux-il mailing list