Commit Graph

10114 Commits

Author SHA1 Message Date
Axel Dörfler
983377dc3d Now only uses the file name instead of the full path as area base name.
Calls set_area_protection() after relocating the images to make them
read-only for real.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-24 18:15:20 +00:00
Axel Dörfler
bb59e8a636 The boot loader test now builds again fine.
Removed -fcheck-memory-usage for now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-24 16:23:48 +00:00
Jérôme Duval
fd575d8737 added a symlink for more
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 17:12:51 +00:00
Rudolf Cornelissen
cfab0cc0c8 small logging update
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 15:00:09 +00:00
Rudolf Cornelissen
03b720e76e added move_overlay() related info to shared_info.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 14:27:14 +00:00
Rudolf Cornelissen
da1bc0f07d started implementation of move_overlay(): to be continued..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 14:25:29 +00:00
Axel Dörfler
7d86dc0e79 Added grep, cat, and less.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 04:47:19 +00:00
Axel Dörfler
40ab990937 vm_cache_resize() can now resize all caches - and therefore, it now accepts
an off_t as size argument.
Implemented new function vm_cache_write_modified() which will write all
dirty pages of this cache back to disk (using the new vm_page_write_modified()
function).
Fixed warnings when compiled with debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:34:04 +00:00
Axel Dörfler
86b5aa8df9 Implemented new function vm_page_write_modified() that writes all dirty
pages in a cache back using the store's write method. Doesn't optimize
disk access yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:30:02 +00:00
Axel Dörfler
257d99f228 Renamed readwrite() to cache_io(), and readwrite_pages() to pages_io().
While we can tolerate the device driver to ignore the bytes argument when we
read from the device, we cannot do this for writes - now the code actually
takes this into account. Also added a comment about what to do when our own
driver is fixed :)
Implemented file_cache_sync().
file_cache_set_size() now uses vm_cache::virtual_size instead of the now
removed vnode_store::size. Also, it now resizes the vm_cache as well, so
that any no longer used pages are freed.
write_to_cache() now puts all pages in the modified list, so that they
can be written back easily.
Improved debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:27:45 +00:00
Axel Dörfler
3aacbe700a Removed the vnode_store::size field - it's no longer needed. Instead,
vm_cache::virtual_size is now used by the file cache code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:22:35 +00:00
Axel Dörfler
3e5bf45013 attr_dir_open() now checks if the FS call is implemented at all.
dec_vnode_ref_count() now deletes the cache *after* calling the file system's
remove/release vnode function. Also, it will now write back any pending
changes in that cache before removing it.
Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:20:20 +00:00
Axel Dörfler
e0ee16403e Added prototype for vm_cache_write_modified().
Changed size argument of vm_cache_resize() from size_t to off_t.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:17:39 +00:00
Axel Dörfler
583e12c489 Added vm_page_write_modified() prototype.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 03:16:10 +00:00
Axel Dörfler
e057f978ce Inode::FillPendingRequests() could fill the requests in the wrong team context.
Now, it will only notify the read requests do gather the data.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 02:57:34 +00:00
Axel Dörfler
48f8c4e477 file_cache_create() fails when it's called before the vnode is created.
Inode::SetFileSize() now changes the size of the cache as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 01:40:44 +00:00
Axel Dörfler
41eca62b69 Fixed debug build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 01:38:44 +00:00
Axel Dörfler
8c6a62c60c Now implements bfs_write_pages().
Changed some debug stuff.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 01:38:02 +00:00
Jérôme Duval
378a243ecc move from use of boot_time to use of system_time_offset
remove _get_tzfilename


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:20:30 +00:00
Jérôme Duval
2ecad4070b now use _kern_get_tzfilename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:19:22 +00:00
Jérôme Duval
177fdbb034 renamed rtc_boot_time to rtc_system_time_offset
move code from use of boot_time to use of system_time_offset
added _user_get_tzfilename


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:16:24 +00:00
Jérôme Duval
10a832f235 removed fields not needed any more in userland
boot_time is now system_time_offset


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:11:33 +00:00
Jérôme Duval
0018ac6a37 added _user_get_tzfilename
renamed rtc_boot_time to rtc_system_time_offset


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:10:18 +00:00
Jérôme Duval
6f8c05c381 added _kern_get_tzfilename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:06:49 +00:00
Jérôme Duval
50f370818a added clockconfig
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 23:33:56 +00:00
Jérôme Duval
21d7f34c42 added clockconfig on startup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 23:33:02 +00:00
Jérôme Duval
e2383c107d fixed offset sign, gmt clock is working
this should be factored in kernel core to only have a system_time_offset


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 21:54:24 +00:00
Axel Dörfler
92a076fcce Journal::FlushLogAndBlocks() no longer uses Journal::Lock() but the lock directly.
That avoids starting a new transaction for no reason (which wouldn't do any harm,
but still, it's not necessary to do that at all).
log_entry::cached_blocks is no longer maintained or needed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 20:49:55 +00:00
Axel Dörfler
1d20e0608e Inode::Create() allowed to create a symlink "above" a file.
Also, it did not check the access permissions if the file already existed.
Removed check for INODE_NO_CACHE, as this no longer applies.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 20:30:24 +00:00
Axel Dörfler
8039d342ec path & toPath don't seem to be too clear. Fixed order or arguments to the
kernel syscall and renamed them to be less confusing.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 20:29:07 +00:00
Axel Dörfler
cd3931efde Added find_directory() test application. Unlike the other tests, it only
tests the libroot.so implementation, so it has to be run under Haiku to
test its implementation (it only prints out all directories, anyway).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:44:11 +00:00
Axel Dörfler
4cd43d200d Removed R5 compatibility stuff, as it's not needed in our libroot.
Moved test main() into separate file under tests/.
Fixed warnings, some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:42:38 +00:00
Jérôme Duval
b39d4ade08 modified tzset to use the global tzfilename when no TZ env variable is found
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:35:13 +00:00
Jérôme Duval
56d0b9b6db added _get_tzfilename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:33:43 +00:00
Jérôme Duval
f92e8b3361 added a clockconfig bin tool
it is only tested on R5, but should make its way on Haiku too


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:26:28 +00:00
Jérôme Duval
377eab2488 added _user_set_tzfilename
moved set_tzfilename into _user_tzfilename


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:14:06 +00:00
Jérôme Duval
4bbf2e4987 added _user_set_tzfilename
removed set_tzspecs, which was useless; now done in user_set_tzspecs


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:05:17 +00:00
Jérôme Duval
d585e91d9d added tzfilename and isGMT fields.
tzfilename is used to keep current timezone filename
isGMT is used to know how to handle rtc clock


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:02:01 +00:00
Jérôme Duval
fbf47a381c added _kern_set_tzfilename, used to set global timezone filename and whether clock is GMT
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 16:59:10 +00:00
Ingo Weinhold
bd38d51e91 Don't build the userland add-ons here anymore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 15:49:13 +00:00
Ingo Weinhold
2406c27b43 Disabled building the DiskDevice stuff separately. The tests don't work at moment anyway.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 15:43:47 +00:00
Ingo Weinhold
36fc85d5a2 Disabled DDM tests for the time being.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 15:40:45 +00:00
François Revol
64829f93ff add find_directory to libroot build... someone test it ?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 15:28:51 +00:00
François Revol
390738c37c Use correct syscall for Haiku; better error reporting; testing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 15:27:08 +00:00
Rudolf Cornelissen
34b765e03b updated settings file with more loggging options info
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 15:12:32 +00:00
Rudolf Cornelissen
39c1c5d155 updated version number to 0.18
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 14:57:12 +00:00
Rudolf Cornelissen
f1a659c05d updated doc for fixes done.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 14:56:11 +00:00
Rudolf Cornelissen
2ed96bbc32 Fixed GET_TIMING_CONSTRAINTS and GET_ACCELERANT_DEVICE_INFO accelerant hooks to return valid data; updated modeline checking and
modification code (used by ProposeDisplayMode) to adhere to one more timing constraint.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 14:54:57 +00:00
François Revol
722a8c5d4d #define OSDIR to "beos" and use it, so we can later just change that
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 09:23:54 +00:00
François Revol
d457be4f45 make use of COMPILE_FOR_R5, make some things static.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 09:04:53 +00:00