Commit Graph

14013 Commits

Author SHA1 Message Date
Axel Dörfler 8c20600d12 Looks like some BIOS don't bother filling in cylinder/head/sectors_per_track information
for extended drive parameters.
This should fix eventual "no boot disk" messages of the boot loader.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 22:43:50 +00:00
Axel Dörfler cb6d675cf4 Aborting transactions doesn't change the number of unwritten transactions - that
counter does not take the current transaction into account.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 22:26:49 +00:00
Axel Dörfler 944278d7ed Fix the build - Stack.h is now gone from the BFS directory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 17:43:45 +00:00
Axel Dörfler 9a99234b1a Implemented basic sub transaction support - seems to work so far, but I haven't
tested it heavily yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 16:49:01 +00:00
Axel Dörfler ca7c5a9e13 Implemented cache_detach_sub_transaction() - not tested yet, though.
Added and implemented new functions cache_blocks_in_[sub_]transaction().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 16:46:17 +00:00
Jérôme Duval 6ded062819 updated third party tool: bison-2.1
removed unused dirs to be lighter


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 15:07:54 +00:00
Axel Dörfler 94752292dd First go at an implementation of sub transactions - code is not yet tested, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 14:37:29 +00:00
Axel Dörfler bd0b075c13 Now takes the off-by-one error in Be's BFS implemenation into account, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 14:36:21 +00:00
Axel Dörfler 3a7c99e12d Oops, this one did only work for my test case...
The last log entry was never added to the list (if there were more than one), and
thus, it's blocks were never unlocked nor written back (after some minutes of
makehdimage an empty image would greet you).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 14:32:25 +00:00
Jérôme Duval f7b4a08237 updated bzip2 version info
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 13:57:02 +00:00
Jérôme Duval 6c21682df5 updated third party tool: bzip2-1.0.3
added man pages


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 13:54:56 +00:00
Jérôme Duval 1a8f53bbf7 added a SourceVisitor and a TargetVisitor to go through BDiskDevice and BPartition objects
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 13:11:11 +00:00
Axel Dörfler 8047f0a02d Ported the new logging structure over to the old R5 BFS version - doesn't optimize it,
though, so it's not really ready to be used in a real file system.
Found an off-by-one/some error in Be's BFS implementation: it doesn't use the log
array to its full extent.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 12:59:04 +00:00
Jérôme Duval 94fa227876 update third party lib : libiconv-1.10
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 08:42:03 +00:00
Jérôme Duval 42f724a7f3 update third party lib : zlib-1.2.3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 08:31:31 +00:00
Jérôme Duval 9b85b132da update third party lib : libpng-1.2.8
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 08:29:54 +00:00
Jérôme Duval b461fb1d4b added a haiku logo from stippi, thanks!
enlarged the window
improves widget placement


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 23:10:27 +00:00
Axel Dörfler e620c9328c Argl, turns out Be's replay log routine cannot handle block_runs with a size unequal
1 - IOW using block_runs here is completely bogus.
Crippled our code to not create longer block_runs - at least, a dirty BFS image is
now a dirty BFS image - you can mount a dirty image on either system and it will
work :-)
The R5 version of our BFS is still incompatible though - ie. running bfs_shell or
copy_to_bfs_image on a dirty image will still potentially corrupt it. Maybe I'll
even port the changes over one day...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 20:52:15 +00:00
Axel Dörfler b68efdcaa7 We now use the kernel's Stack class instead of our own copy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 20:03:00 +00:00
Axel Dörfler 0bf62ebece The BlockArray class is now longer used, and strlcpy() is part of the Haiku kernel anyway.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 20:02:16 +00:00
Axel Dörfler a59b9afff0 Rewrote the log entry writing so that it should be BFS compatible - not yet tested for
compatibility, though!
Writing is now combined into a few writev_pos() function calls to speed up log writing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 20:01:42 +00:00
Axel Dörfler 636d40373d Moved the "reopen when read-only" logic into the DeviceOpener class.
Since CD-ROMs let open themselves read/write, it now also checks the device
geometry, and will make sure the device is opened read-only if the geometry
structure says so - this should reduce the number of write errors you get
during boot :-)
Volume::fFlags is now always correctly maintained.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 19:58:19 +00:00
Axel Dörfler 0fc0129604 Fixed another stupid bug in all readv()/writev() versions: the position of
the read/write access was only correct for the first entry in the iovec.
These functions should be updated to use read_pages()/write_pages() where
possible, anyway - right now, they only save some kernel calls, while they
could be processed by the device at once.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 19:51:47 +00:00
Axel Dörfler 28953e6c2b Fixed two stupid bugs in _kern_writev() and _kern_readv() - they accidently
tried to write from/read to the userland file descriptor instead of the one
of the kernel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 19:11:07 +00:00
Waldemar Kornewald e50616872e We should not forget to stop the etherq (was not sure if the stack does
it for us, but seems that we had a lock/memory-leak, here).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 18:46:45 +00:00
Axel Dörfler 3ea780cdf9 If booted from an image, the list of possible boot partitions is now ordered by
some heuristic: when you booted from a CD, CDs are preferred; else, volumes with
names like "Haiku" or "System" are preferred - if someone has better ideas, please
shout.
Note, this heuristic will only come into play if the boot loader was loaded from
an image (ie. floppy/CD/network), and you didn't choose any boot device.
Added evil methods to the Stack class that come in handy (you can now directly
access the array) for this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 18:45:55 +00:00
Waldemar Kornewald a957e4c978 Fixed a bug and memory leak in PPPManager.
Added *very* naive semaphore-deletion detection code to ethernet module (fixes crashing bug on unload).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 18:35:13 +00:00
Jérôme Duval 26abf74673 update third party lib : libpng-1.2.8
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-18 08:08:24 +00:00
Jérôme Duval 52215fb363 added a playfile command :
* takes an audio file as parameter
* should play with haiku media kit, provided the codec is supported
* tested ok on Haiku with mp3 and wav files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 22:47:34 +00:00
Adi Oanca f2f3ee8fe7 Undid my last checkin
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 18:13:16 +00:00
Axel Dörfler 2c328ddaa0 Added basic "makehaikufloppy" script, based on the original BeOS one.
Only works after having built the system once - could be greatly improved, but does its job for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 17:13:42 +00:00
Axel Dörfler 5a54b40166 Implemented platform_add_block_devices() - if you have more than one bootable
Haiku disk installed, you can now choose between them in the boot loader.
Also fixed build - obviously forgot to compile before a last minute change...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 14:20:41 +00:00
Axel Dörfler 2db3fced5f Moved vfs_bootstrap_file_systems() and vfs_mount_boot_file_system() out of vfs.cpp
and into its own file vfs_boot.cpp.

Added basic support for booting from CD - it doesn't give CDs a higher priority,
so you could end up booting from HD when you didn't explicetly select "CD-ROM"
in the boot loader. Eventually, it should only boot from HD in this case, if
booting from CD failed (because of a missing boot partition or whatever).

fs_mount(), _kern_mount(), and _user_mount() will now return the dev_t of the
mounted device, and not just B_OK. Maybe we should have fs_unmount() work on
a dev_t instead of a path as well...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 14:01:04 +00:00
Axel Dörfler 94caf40a8e Enlarged the buffer size to the standard CD block size - this greatly speeds up
the boot process. Will experiment with larger sizes later (24k is the current
limit, due to the memory layout used by the platform dependent code).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 13:52:18 +00:00
Axel Dörfler 597416d1dd gKernelArgs.boot_disk.cd is now only set to true, if the selected boot volume
is still the CD-ROM.
BIOSDrive::ReadAt() now tries to read a specific block up to 3 times before
failing - after the second retry, it will also reset the disk system.
get_ext_drive_parameters() will now fail if the BIOS fills in the device_parameters
structure incorrectly (just tested some values against zero, that at least helps
in the case of one of my systems).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 13:45:55 +00:00
Axel Dörfler e84506daca The home/end keys are no longer able to select disabled entries.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 13:40:57 +00:00
Axel Dörfler 76a377394e arch_debug_console_init() is called with args == NULL in case of an early
boot message - unfortunately, it crashed when used this way until now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 10:15:42 +00:00
Axel Dörfler 19567a9917 Now makes sure the selected entry is visible upon entry, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 10:09:04 +00:00
Axel Dörfler a51b55c985 "kernel_args.boot_disk.cd" was never set to true...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 10:06:28 +00:00
Axel Dörfler df13a980fe Mixed up concepts of a selected and a marked item - the Menu::ChoiceText() is now
set correctly (it behaved a bit fuzzy before).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-17 10:05:39 +00:00
Alexander G.M. Smith 47a6a63e35 Need to convert text/html to UTF-8 too, not just text/plain. So that
the spam classifier can handle those Russian HTML only spam messages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-16 18:33:20 +00:00
Stephan Aßmus 8e742b91ba fixed build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-15 22:13:37 +00:00
Adi Oanca 908915fb91 This change should've been checked in for well over a week, back when I activated the NEW_INPUT_HANDLING define. Sorry about that!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-15 19:06:38 +00:00
Rudolf Cornelissen 3aa2145919 added DPMS support (in the normal sense) for TVout: TVpicture is turned off completely when screensaver turns off screen.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-15 10:38:11 +00:00
Rudolf Cornelissen d6d450e124 added TVout DPMS function: at this time only completely disables output when non-TVout mode is selected.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-15 09:52:13 +00:00
Axel Dörfler 2e2bd87511 Renamed devices_check_boot_cd() to check_boot_cd() and moved it up to the other BIOS
functions - it no longer terminates the CD-ROM emulation, but only checks the status,
and therefore, it's now called by platform_register_boot_device() instead of from
platform_start_kernel().
This also makes the devices.h header useless.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-14 21:38:12 +00:00
Axel Dörfler 51e081bade Removed platform_boot_device_is_image() - platform_get_boot_device() now fills
in the adequate field in the kernel_args structure.
Renamed gCDFloppyBoot variable to gBootedFromImage (as network boot should look
similar).
The "kernel_args.boot_disk.cd" field is now maintained as well.
The print_item_at() menu function now prints the Menu::ChoiceText() instead
of that of its marked item.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-14 21:26:30 +00:00
Axel Dörfler 5ea23bb0a3 Removed platform_boot_device_is_image() again; it's now replaced by a field
"booted_from_image" in the kernel_args' boot_disk structure.
Also, added fields "cd" and "user_selected".
A CHOICE_MENU menu can now have a choice text - this is automatically updated
as entries in the menu get selected.
The boot volume menu now has the initial choice text "CD-ROM or hard drive"
in case the boot loader was loaded from an image. The "Rescan volumes" item
is no longer selected by default (only if there was no boot volume found) - but
it's still functionless anyway.
The TAR fs will now appear as "Boot from CD-ROM" in the boot volume menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-14 21:22:19 +00:00
Rudolf Cornelissen 0703480cab updated setmode command: only disable TVout when it's actually supported.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-14 20:08:59 +00:00
Rudolf Cornelissen 4594e58a1b updated NV15 hpos on TV. Tested several TNT1, TNT2 and a GeForce2Ti card with BT 868 and 869 chips: all OK.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-14 19:59:50 +00:00