DragonFly users List (threaded) for 2010-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[no subject]
What I can observe is:
1) mount /usr/src /usr/obj as tmpfs
2) untar src-sys.tgz (from release 2.4.1 image)
3) run 'make nativekernel'
4) build stopped somewhere with compile error
5) but the file seems correct to me.
6) re-run 'make nativekernel'
7) failed again with 'not found' error
8) now tmpfs on /usr/src and /usr/obj disappears
they are told as / (root) mounted filesystems. very strange
I'm guessing some 'swapcache' related change might cause this issue.
Am I missing something
very important code change ?
Any suggestions are welcome, always.
thank you,
-Naoya
--0016e6d5667aa03412047f4fdf30
Content-Type: text/plain; charset=US-ASCII; name="0005-tmmpfs-update-02-10-10.patch"
Content-Disposition: attachment;
filename="0005-tmmpfs-update-02-10-10.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: file1
RnJvbSAzNDhlYzQxOThmZTQ2MjNkZTgwNzY0Njk3OGFjNmM4YjMxZTIzZjkxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBOYW95YSBTdWdpb2thIDxuYW95YS5zdWdpb2thQGdtYWlsLmNv
bT4KRGF0ZTogVGh1LCAxMSBGZWIgMjAxMCAwMDo1OToyOSAtMDgwMApTdWJqZWN0OiBbUEFUQ0hd
ICB0bW1wZnMgIHVwZGF0ZSAwMi8xMC8xMAoKLS0tCiBzYmluL01ha2VmaWxlICAgICAgICAgICAg
ICAgICAgfCAgICAxICsKIHNiaW4vbW91bnQvbW91bnQuOCAgICAgICAgICAgICB8ICAgIDEgKwog
c2Jpbi9tb3VudF90bXBmcy9NYWtlZmlsZSAgICAgIHwgICAxMiArCiBzYmluL21vdW50X3RtcGZz
L21vdW50X3RtcGZzLjggfCAgMTQzICsrKysKIHNiaW4vbW91bnRfdG1wZnMvbW91bnRfdG1wZnMu
YyB8ICAyNjQgKysrKysrKwogc2Jpbi9tb3VudF90bXBmcy9tb3VudF90bXBmcy5oIHwgICAzOCAr
CiBzaGFyZS9tYW4vbWFuNS9NYWtlZmlsZSAgICAgICAgfCAgICAxICsKIHNoYXJlL21hbi9tYW41
L3RtcGZzLjUgICAgICAgICB8ICAxMjAgKysrCiBzeXMvY29uZi9maWxlcyAgICAgICAgICAgICAg
ICAgfCAgICA2ICsKIHN5cy9jb25mL29wdGlvbnMgICAgICAgICAgICAgICB8ICAgIDIgKwogc3lz
L2NvbmZpZy9HRU5FUklDICAgICAgICAgICAgIHwgICAgMSArCiBzeXMvY29uZmlnL0xJTlQgICAg
ICAgICAgICAgICAgfCAgICAxICsKIHN5cy9jb25maWcvVktFUk5FTCAgICAgICAgICAgICB8ICAg
IDEgKwogc3lzL2NvbmZpZy9YODZfNjRfR0VORVJJQyAgICAgIHwgICAgMSArCiBzeXMva2Vybi9N
YWtlLnRhZ3MuaW5jICAgICAgICAgfCAgICA0ICstCiBzeXMva2Vybi9NYWtlZmlsZSAgICAgICAg
ICAgICAgfCAgICAyICstCiBzeXMva2Vybi9NYWtlZmlsZS5taXNjICAgICAgICAgfCAgICAyICst
CiBzeXMva2Vybi92ZnNfbmxvb2t1cC5jICAgICAgICAgfCAgICAzICstCiBzeXMva2Vybi92ZnNf
dm9wb3BzLmMgICAgICAgICAgfCAgICAzICstCiBzeXMvc3lzL21vdW50LmggICAgICAgICAgICAg
ICAgfCAgICAxICsKIHN5cy9zeXMvdmZzY2FjaGUuaCAgICAgICAgICAgICB8ICAgIDIgKy0KIHN5
cy92ZnMvTWFrZWZpbGUgICAgICAgICAgICAgICB8ICAgIDIgKy0KIHN5cy92ZnMvdG1wZnMvTWFr
ZWZpbGUgICAgICAgICB8ICAgIDggKwogc3lzL3Zmcy90bXBmcy90bXBmcy5oICAgICAgICAgIHwg
IDU5NyArKysrKysrKysrKysrKysKIHN5cy92ZnMvdG1wZnMvdG1wZnNfYXJncy5oICAgICB8ICAg
NTQgKysKIHN5cy92ZnMvdG1wZnMvdG1wZnNfZmlmb29wcy5jICB8ICAgOTkgKysrCiBzeXMvdmZz
L3RtcGZ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