Date: Wed, 8 Sep 1999 18:08:23 -0700 (PDT) From: Julian Elischer <julian@whistle.com> To: current@freebsd.org Subject: ccd diffs for perusal. Message-ID: <Pine.BSF.3.95.990908175925.327N-200000@current1.whistle.com>
next 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-203954027-936839303=:327 Content-Type: TEXT/PLAIN; charset=US-ASCII After comments from Phk and Matt.. Particularly I'm looking for someone with a ccd and knowledge of it to look at these patches, (not big) and see if they do anything of interest.. The theory is to inherrit the blocksizes of the underlying devices up to the ccd device. I don't have a ccd array so it's a bit hard to test, but it's more a "I think this is how it might work" sort of thing.. (also it should stop the requirement that ccds be on FFS labelled partitions) Anyone care to comment? (Greg, I think these ideas probably apply to vinum, as well) --0-203954027-936839303=:327 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ccd.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.3.95.990908180823.327O@current1.whistle.com> Content-Description: SW5kZXg6IGNjZC5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmls ZTogL2N2cy9mcmVlYnNkL3NyYy9zeXMvZGV2L2NjZC9jY2QuYyx2DQpyZXRy aWV2aW5nIHJldmlzaW9uIDEuNTYNCmRpZmYgLWMgLXIxLjU2IGNjZC5jDQoq KiogY2NkLmMJMTk5OS8wOS8wMyAwNToxNjo1NAkxLjU2DQotLS0gY2NkLmMJ MTk5OS8wOS8wOSAwMDo1OTo0Nw0KKioqKioqKioqKioqKioqDQoqKiogMzA3 LDMxMyAqKioqDQogIAlyZWdpc3RlciBpbnQgaXg7DQogIAlzdHJ1Y3Qgdm5v ZGUgKnZwOw0KICAJc2l6ZV90IG1pbnNpemU7DQohIAlpbnQgbWF4c2Vjc2l6 ZTsNCiAgCXN0cnVjdCBwYXJ0aW5mby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QogIA0KICAJZGV2LT5zaV9ic2l6 ZV9iZXN0ID0gQkxLREVWX0lPU0laRTsNCiAgCWRldi0+c2lfYnNpemVfbWF4 ID0gTUFYQlNJWkU7DQorIAlpZiAoKCBkZXYtPnNpX2JzaXplX3BoeXMgPSBj Y2ctPmNjZ19zZWNzaXplKSA9PSAwKSB7DQorIAkJZGV2LT5zaV9ic2l6ZV9w aHlzID0gREVWX0JTSVpFOw0KKyAJfQ0KKyANCiAgDQogIAkvKg0KICAJICog SWYgd2UncmUgaW5pdGlhbGl6ZWQsIGNoZWNrIHRvIHNlZSBpZiB0aGVyZSBh cmUgYW55IG90aGVyDQo= --0-203954027-936839303=:327-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" 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.3.95.990908175925.327N-200000>