Commit Graph

31367 Commits

Author SHA1 Message Date
Stephan Aßmus dce00bc179 Added UnzipEngine, work in progress. This actually unzips, but the progress
reporting is incomplete and it is not yet used for anything, it's not even
part of the build. I am testing it in a selfcontained little test.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 14:55:03 +00:00
Stephan Aßmus 8e3916f8ef Extracted SemaphoreLocker into it's own file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 14:53:06 +00:00
Stephan Aßmus 8dadca32b1 Refactoring and cleanup. The progress report mechanism should now be much
more flexible. May need this in the alphabranch...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 14:52:13 +00:00
Axel Dörfler 4aa6ec093b * IsMinimized() now locks the window. This should fix bug #4274.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 14:41:35 +00:00
Axel Dörfler 47000651b5 * Rewrote USB_rle.h, USB_spec.h, and midi_driver.h. I did not reproduce the
documentation found in those headers - this stuff should go into the Haiku
  Book instead (although I'm not even sure the USB_rle.h, and midi_driver.h
  are really needed any longer).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 12:04:00 +00:00
Michael Lotz 44fbca2790 Implement the rest of the IO hook. We now do directly satisfy write requests
by writing them into our buffers and directly satisfy read requests by copying
our buffers, filling any gaps by spawning off subrequests to the underlaying
filesystem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 03:09:28 +00:00
François Revol 7e26ad5af7 Add functions to the old-style PCI bus manager to reserve a device from an old-style driver for exclusive use. This should help making OSS and native audio drivers mutually exclusive. Used in es1370 and hda drivers as examples. OSS must still be fixed to use it too though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 23:56:02 +00:00
Michael Lotz 271b9ad49a Enable the IO hook for both attribute and write overlay. Attribute overlay isn't
concerned by it as it does not do file data, it simply passes the hook through.
In the write_overlay case we check for write operations and for modified nodes.
In both cases we return B_NOT_SUPPORTED which will cause a fallback to
synchronous IO. The main problem with the fallback is not that it is synchronous
but that the physical buffers of the request will be mapped and filled page
wise, which makes it slow for various reasons. In any case with this setup all
reads to write_overlay that can go through unmodified now do. This should speed
up CD boot as there is no physical to virtual translation overhead and no limit
to page wise reads. In the best case it should now read 256 blocks at the time
instead of always falling back to 2. My tests show no side effects on creating,
writing or partially modifying nodes so far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 21:22:37 +00:00
Axel Dörfler ee0be828e4 * Rewrote USB_printer.h, and bus_manager.h (the last short ones...) :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 18:48:34 +00:00
Michael Lotz 185fd1c5d2 Ported over the kernel heap to libroot to make use of it's validation
capabilities to aid in debugging memory corruption issues.

It does:
* Initialize memory to 0xcc to help turn up use of uninitialized memory
* Set freed memory to 0xdeadbeef to help find accesses of freed memory
* Use the paranoid heap validation to turn up many cases of memory corruption
* Use a simplistic wall check to turn up memory overwrites past allocations
* Take extra steps to validate freed addresses to turn up misaligned frees

It has an interface to en-/disable paranoid validation and to start/stop regular
wall checking. Both are currently just enabled. At a later stage a debug version
of libroot could be used by an application and the checks enabled at will. Note
that due to the paranoid validation and the suboptimal locking this allocator
will perform horribly. Still to find memory corruption issues in the system or
also in your applications it can be helpful to build your installation with it
turned on. To enable it you currently need to edit the Jamfile to sub-include
the malloc_debug instead of the malloc directory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 18:15:30 +00:00
Stephan Aßmus 74e8797f5e Fixed the build. Axel is probably going to commit the cleaned up header soon.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 15:14:57 +00:00
Axel Dörfler 7945b22962 * Quick fix to send notifications on mount/unmount/initialize.
* This closes #2081.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 13:59:36 +00:00
Axel Dörfler a2bb341447 * Cleanup, no functional change.
+ alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 13:23:05 +00:00
Axel Dörfler 73e3cd6904 * Applied dirent_test build fix in trunk as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 13:19:22 +00:00
Axel Dörfler 6761e2d915 * PowerStatus now checks if full_capacity is valid, based on a patch by tqh.
This closes bug #4305.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 13:00:17 +00:00
Stephan Aßmus 4fcdbc69a6 Patch by scottmc with small fixes by myself:
Updated to use all the new alpha1 packages. I have not yet done throughrough
testing myself. I figured that trunk should also use the newest packages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 11:42:09 +00:00
Axel Dörfler 6203096a86 * Removed the GPL_ONLY stuff from ntfs and reiserfs in trunk as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 10:16:21 +00:00
Axel Dörfler 7b8b23e9a4 * Cleanup, no functional change.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 09:53:41 +00:00
Michael Lotz 419f2d6f3e Fix errors in maintaining the area list due to assumptions that are only true
for the page list but not the area one. Since multiple pages can be allocated
at once, even an area that is not at the top of the list can become empty. In
such a case the area list would previously have lost entries. Also because
we can remove more than one page from any area, not just the top one, we may
need to move forward in the list so that it stays ordered by free pages.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 08:46:39 +00:00
Michael Lotz 5bfffb9d94 The block size wasn't initialized, causing usages of an IOScheduler without
a DMAResource not to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-01 03:37:20 +00:00
Marcus Overhagen 9781bd2e09 Enable busmaserting ans io decoder if not already done by the BIOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 23:25:35 +00:00
Marcus Overhagen 5a5f7ad65e Modified bus mastering enable code, but remains disabled because it crashes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 22:43:10 +00:00
Marcus Overhagen d196ea6045 rename PCI-IDE into PCI-ATA
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 22:40:33 +00:00
Jérôme Duval 7703280cb0 revert the libiconv stuff. fix bug #4387
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 20:09:14 +00:00
Stephan Aßmus d478944d26 * Some menu items were enabled for the completely wrong partitions, because
the BPartition pointer in _UpdateMenus() was toast after calling
  CancelModifications() on the disk. Most importantly, the Mount/Unmount
  items are now correctly enabled/disabled. And you can no longer initialize
  mounted partitions...
* Added some debug output to help track down why BDiskDeviceRoster
  notifications don't work anymore. I am pretty sure those did work at one
  time.

+alphabranch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 19:57:48 +00:00
Oliver Ruiz Dorantes a53e31dde4 - Use Layout manager
- Styling


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 19:21:50 +00:00
Axel Dörfler 214f370653 * Do not show the time randomization to the user; filter it out again.
* Also, round the nano second times, and don't only cut them off.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 18:36:13 +00:00
Rudolf Cornelissen aa41802fa6 added support for ID 0x02e0 (Nvidia GeForce 7600 GT), closing bug #2465. +alphabranch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 18:01:36 +00:00
Rudolf Cornelissen aca7132053 added support for ID 0x02e0 (Nvidia GeForce 7600 GT), closing bug #2465. +alphabranch./boot/home/rudolf/haiku-svn/trunk/src/add-ons/kernel/drivers/graphics/nvidia/ /boot/home/rudolf/haiku-svn/trunk/src/add-ons/accelerants/nvidia/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 18:00:21 +00:00
Michael Lotz 88861a8888 Also test for the "no medium persent" case and don't tell B_DEV_MEDIA_CHANGED in
such a case as that would try to read info about a non-present medium.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 15:08:38 +00:00
Stephan Aßmus 9b37feb4a8 Some methods were unnecessarily/inconveniently protected.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 15:04:55 +00:00
Axel Dörfler 9cca7d50e9 * Backported r32851 from the r1alpha branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 14:50:38 +00:00
Michael Lotz 1aa8877afe Don't read or write more bytes than the buffer you provide is large. On reading
it would overwrite memory and on writing it would crash further down when the
buffer is accessed. Fixes #4383.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 13:18:23 +00:00
Stephan Aßmus 9e15ae596c Added TODO about solving the renaming /boot problem differently as discussed
with Ingo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 13:16:40 +00:00
Stephan Aßmus f7a0f575a8 When no settings file is found, resize the list view and the window such that
all columns are seen (taking care not to become bigger than the screen) and
center the window on screen.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 11:42:18 +00:00
Stephan Aßmus e5f148ddec It was a bad idea to calculate the text margin when drawing the first column.
Now it is explicitely calculated, which makes getting the preferred size
more reliable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 11:38:03 +00:00
Stephan Aßmus b439d6e573 * Moved restriction to min/max column width from where GetColumnPreferredWidth
was used into GetColumnPreferredWidth for convenience.
* Disabled cached total column width in title view, since it wasn't properly
  maintained. Instead of finding the bug (the code should use proper listening
  mechanisms, and such problems would go away automatically), the total width
  is now calculated on the fly. It is used for updating the horizontal
  scrollbar.
* Resolved TODO in PreferredSize(), the width is now based on the preferred
  width of all columns.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 11:31:03 +00:00
Stephan Aßmus 8c21216131 * When dragging/resizing columns, remember and take the click offset into
account.
* When releasing the mouse buttom from a resize operation, don't reset the
  view cursor, as we would still start resizing the column again if we
  clicked.

This doesn't only improve these mouse operations, but solves weird jumping
columns, for example when just clicking in the resize hot-area.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 10:25:26 +00:00
Stephan Aßmus 8028111912 Size ContentSize() seems to be unreliable for read-only media, and also since
we may allow initializing partitions from within the Installer, it's better to
use Size() for now. Should fix the CD install source to display as 800 +some
Bytes.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 09:58:25 +00:00
Stephan Aßmus da268834ab Update the progress bar more often during file copies (every 2 MB instead of
every 10, which was not smooth enough).

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 09:23:22 +00:00
Rudolf Cornelissen ec591ad2fa memory size detection rewrite also fixes black_screen on some GF6xxx types. +alphabranch BTW
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 09:03:35 +00:00
Rudolf Cornelissen fa42e59564 rewrote memory size detection. This should fix black screen at app_server startup on a number of GF7xxx cards (humdinger's for instance). updated docs, bumped version to 0.98.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 08:55:02 +00:00
Jonas Sundström 91147eefd0 Solve #4336 as suggested by Fredrik Modèen, using shared private code as suggested by Ryan Leavengood. Removed ProcessRefs code path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 02:44:19 +00:00
Jonas Sundström 9eb3adda45 Adapted to use TrackerAddonAppLaunch.h. A little cleanup. Not necessary for alphabranch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 01:28:59 +00:00
Jonas Sundström c5d2ebc76a Introducing a private method for launching a Tracker addon as a stand-alone application. Updated TextSearch to use it. Matthijs Hollemans license is MIT. Not important for alphabranch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 00:48:48 +00:00
Ingo Weinhold b1c06fc64a Patch by Vincent Duvert: Added support for BSDish xattrs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 23:54:04 +00:00
Rudolf Cornelissen 3ab7752ce8 fixed use of EDID info for at least the internal panel on NV34, geforce FX 5200 laptops. +alphabranch
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 19:54:25 +00:00
Fredrik Modeen 21b9bcb21c Style fix .. thanks axel
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 17:00:32 +00:00
Marcus Overhagen a26bf7958f truncate strings to allow building the debug version
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 15:04:04 +00:00
Fredrik Modeen 008da5af03 Fixes #4043
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 14:31:38 +00:00