[yocto] [systemd-devel] How to automount

Daniel. danielhilst at gmail.com
Wed Sep 23 03:09:28 PDT 2015


I think that sync just flushes data to disk and umount clears the dirty
bit. There is no sync.vfat that I know.
Em 23/09/2015 05:31, "Paul D. DeRocco" <pderocco at ix.netcom.com> escreveu:

> > From: Mike Looijmans
> >
> > This only serves to remove a mounted directory after
> > "yanking" the device. It
> > doesn't really do anything useful though, you'll still get corrupted
> > filesystems, because Linux is way too lazy in writing out dirty data.
> >
> > Proper solution would be to have the system mount a removable
> > device as
> > read-only, and promote it to r/w once someone tries to write
> > to it. And then
> > after a timeout, it should go back to readonly.
> >
> > Supposedly, "autofs" can accomplish this, but I've never met
> > anyone who got
> > that to actually work.
>
> In my system, the removable drive is used only for backing up or restoring
> various data files in response to user commands. If I do a sync after each
> such command, shouldn't that be enough to guarantee the file system
> doesn't get corrupted when the drive is removed? Will it also ensure the
> dirty flag is clear, or does that get set anyway?
>
> --
>
> Ciao,               Paul D. DeRocco
> Paul                mailto:pderocco at ix.netcom.com
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150923/ecaa60c7/attachment.html>


More information about the yocto mailing list