Hi,

[EMAIL PROTECTED] wrote:

what would be the best approach to implement aps on FreeBSD?

Go as deep as possible into the disk driver. The reason is pretty simple. Just stop any write access to the disk as soon as the machine starts moving above a given limit. If the movement is above a higher level, start also to move the heads out.

As the heads are moved out when a fall starts, the chance that the heads hit the surface is minimised.

The driver can then move the heads back after a certain amount of time passed by without any event and continue operation.

Would an daemon be sufficient for that? Reaction time? What about an kernel 
thread?

Getting the heads out of the danger zone is one thing but the most crucial thing from my point of view is the write access. If the heads are moved away while writing the current part of the track is damaged.

I have seen a Thinkpad of the first lot being so nervous moving the heads avway at the slidest movement of the machine to slow work down to a crawl being seated in a bus or plane.

Other solutions?

I did some work like this a very long time ago on RSX. Stopping a write brought for us the cases of damaged file systems down to some 10% of the original value.

Erich
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to