Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2012 16:45:46 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Daniel Feenberg <feenberg@nber.org>
Cc:        Mike Clarke <jmc-freebsd2@milibyte.co.uk>, freebsd-questions@freebsd.org
Subject:   Re: USB device activity when not mounted
Message-ID:  <20120614164546.6e83bb12.freebsd@edvax.de>
In-Reply-To: <Pine.GSO.4.64.1206140943200.11949@nber6>
References:  <4FD967E8.60305@dreamchaser.org> <20120614080511.0d855639.freebsd@edvax.de> <201206141437.52763.jmc-freebsd2@milibyte.co.uk> <Pine.GSO.4.64.1206140943200.11949@nber6>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Jun 2012 09:49:00 -0400 (EDT), Daniel Feenberg wrote:
> Is it possible that there is volitile memory buffering in the stick that 
> may not have been written to flash when umount thinks it is complete, and 
> the flashing light is an indication that power is still required to 
> complete the write to non-volitile memory?

That is possible, but then, the light should be silent
after a finite amount of time.



> Futhermore, are we sure that umount even waits for a sync? There is no 
> mention of that in the man page and I don't recall any long waits for 
> umount to return.

If I remember correctly, the umount command instructs the
kernel to write all pending file buffers and then detach
the device from the file system hierarchy. When the device
has been detached (doesn't appear anymore in mount output),
everything should have been written. However, as you said
it might be possible that _inside_ the USB stick there is
still an action that needs to be performed and therefore
requires power. But I doubt this takes several seconds to
complete...



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120614164546.6e83bb12.freebsd>