[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] Re: [linux-team] Compte utilisateur résolu :)
Pascal Bleser wrote:
>
> On Fri, Oct 15, 1999 at 02:04:02PM +0200, Ludovic Kuty wrote:
> > Christophe Schockaert wrote:
> [...]
> > > Désolé de vous avoir embêté pour ça, mais j'étais qd même un peu
> > > déconcerté devant ces bizarreries. D'ailleurs, si qqn a une explication,
> > > je suis tjrs tout ouie :)
> > Je viens de faire le test et je dirais plutot qu'il faut attendre
> > quelques secondes pour qu'on puisse faire le su. Cela ne depend pas
> > du fait d'executer ou pas une commande avant.
> > En fait il faut que les buffers soient vides sur le disque.
> > Si tu fais (en ce qui me concerne) 'mount /dev/sda3 / -o remount,sync'
> > les entrees/sorties du systeme seront faites de maniere synchrone, et
> > tu pourras tout de suite faire un 'su' apres un 'useradd'.
> euh... le canon pour écraser la mouche.
>
> Le montage d'une partition en mode synchrone ne marche pas encore parfaitement
> sous Linux.
>
> Beaucoup plus simple: la commande "sync" force le démon bdflush à vider les
> caches.
>
D'accord mais plus precisement apres un certain temps. Car la page man de sync dit ceci:
>From Linus: "Note that sync is only guaranteed to schedule
the dirty blocks for writing: it can actually take a short
time before all the blocks are finally written. If you
are doing the sync with the expectation of killing the
machine soon after, please take this into account and
sleep for a few seconds.
Donc sync n'est pas encore assez.
Ludovic Kuty
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/