Date: Tue, 27 Mar 2001 15:54:56 -0800 (PST) From: Gersh <gersh@sonn.com> To: David Taylor <davidt@yadt.co.uk> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: crash dump speed up patch. Message-ID: <Pine.BSF.4.21.0103271553570.570-200000@tabby.sonn.com> In-Reply-To: <20010327235324.A60690@gattaca.yadt.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-218245781-985737296=:570 Content-Type: TEXT/PLAIN; charset=US-ASCII Attatched is a updated version of the patch with a few ideas from the list aswell as cam/scsi/scsi_da.c modified aswell. Thanks for all the comments. --0-218245781-985737296=:570 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="dump.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0103271554560.570@tabby.sonn.com> Content-Description: Content-Disposition: attachment; filename="dump.diff" LS0tIGNhbS9zY3NpL3Njc2lfZGEuYwlNb24gSmFuIDE3IDA2OjI3OjM3IDIw MDANCisrKyBjYW0vc2NzaS9zY3NpX2RhLmMubmV3CVR1ZSBNYXIgMjcgMTY6 MzQ6NTcgMjAwMQ0KQEAgLTU4MCw3ICs1ODAsNyBAQA0KIAlsb25nCSAgICBi bGtjbnQ7DQogCXZtX29mZnNldF90IGFkZHI7CQ0KIAlzdHJ1Y3QJICAgIGNj Yl9zY3NpaW8gY3NpbzsNCi0JaW50CSAgICBlcnJvcjsNCisJaW50CSAgICBl cnJvciwgbGVmdCwgc3RhdGUsIHRvdGFsLCBwZXJjZW50Ow0KIA0KIAkvKiB0 b3NzIGFueSBjaGFyYWN0ZXJzIHByZXNlbnQgcHJpb3IgdG8gZHVtcCAqLw0K IAl3aGlsZSAoY25jaGVja2MoKSAhPSAtMSkNCkBAIC02MDQsNiArNjA0LDEx IEBADQogCWFkZHIgPSAwOwkvKiBzdGFydGluZyBhZGRyZXNzICovDQogCWJs a2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I0KSk7 DQorCSAgICAvKg0KKwkgICAgICogIFJhdGUgbGltaXQgcHJpbnRmJ3MgdG8g cmVwbGFjZSBvbGQgREVMQVkoMTAwMCkNCisJICAgICAqICBUaGlzIGlzIGRv bmUgc28gdGhhdCBvbGQgc2xvdyBzZXJpYWwgY29ubmVjdGlvbnMNCisJICAg ICAqICBkbyBub3QgZ2V0IGhvc2VkLg0KKwkgICAgICovDQorDQorCSAgICBs ZWZ0Kys7DQorCSAgICBwZXJjZW50ID0gbGVmdCAqIDEwMCAvIHRvdGFsOw0K Kw0KKwkgICAgaWYgKCEocGVyY2VudCAlIDEwKSAmJiAoc3RhdGUgLSBwZXJj ZW50KSkNCisJICAgIHsNCisJCXByaW50ZigiJWQgIiwgcGVyY2VudCk7DQor CQlzdGF0ZSA9IHBlcmNlbnQ7DQorCSAgICB9DQogCX0NCi0NCiAJYmxrbm8g Kz0gaG93bWFueShQQUdFX1NJWkUsIHNlY3NpemUpOw0KIAljb3VudCAtPSBo b3dtYW55KFBBR0VfU0laRSwgc2Vjc2l6ZSk7DQogCWFkZHIgKz0gUEFHRV9T SVpFOw0K --0-218245781-985737296=:570-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103271553570.570-200000>