Commit Graph

64709 Commits

Author SHA1 Message Date
Jérôme Duval
f193f67fbe pci_utils: get_class_info() needs at least 70 chars, make it 128.
seen on https://dev.haiku-os.org/attachment/ticket/17970/syslog_timestamp_hrev56511.txt#L131

Change-Id: I7d15c951e9c0349614f22d5b1348b43e105ba596
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5713
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-10-05 16:27:11 +00:00
Jérôme Duval
3f7abfc9b5 usb: trigger the explore thread when a bus is added
this helps to find the boot disk, otherwise it can happen that the usb disk driver
misses a bus to explore.

Change-Id: I6983b42cf66f946b4ba9763ec09b6e4a848f2e9a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5712
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-10-03 23:58:53 +00:00
Jérôme Duval
547ddb9090 uhci: switch to the new driver API
Change-Id: Ifc95a32066d0089d3fd41e489604d58815c074af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5711
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-10-03 23:58:53 +00:00
Jérôme Duval
0ed2fb8d75 ohci: switch to the new driver API
Change-Id: I065743b5ced8b75f9576b62421525824698a2245
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5710
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-10-03 23:58:53 +00:00
Jérôme Duval
15ebede292 ehci: switch to the new driver API
Change-Id: I9102a27fe8e536003a0ab09c9cca5a87e88c8092
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5709
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-10-03 23:58:53 +00:00
Jérôme Duval
3d0c08efaf xhci: switch to the new driver API
keep the stack loaded when no bus is found

Change-Id: Ic2cf640ead7d94152651cea86a7977caa0920163
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5708
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-10-03 23:58:53 +00:00
Jérôme Duval
1eebcfa03e usb: add an interface for usb controllers using the new driver API
Change-Id: I25f481c8a7c3e4aafa3080640ce156b9232eaf73
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5707
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-10-03 23:58:53 +00:00
David Karoly
2ca24be640 boot: embed Haiku revision in loader binary
Change-Id: I9f71fba6c2c4fdaa63e118825c5fd00d51b556fb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5693
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-10-03 18:50:39 +00:00
Oscar Lesta
eb198a09e9 checkstyle.py: Python 3 compatibility, part two.
Previous patch was tested only with single files arguments, thus
missing the usage of "os.path.walk()" (that was removed on 3.0).

Use "os.walk()" instead, that has been available since Python 2.3.

Change-Id: Ia290bebaa950466ac5f1d978f0a5e710a8e3da88
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5696
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2022-10-02 09:33:59 +00:00
Mashijams
40b5272d86 xfs: make common lower bound function for calculating index of Hash
Change-Id: I5e902031b0e2a1051a7f96ab94dca0dba0ca9112
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5698
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2022-10-02 09:30:26 +00:00
Mashijams
88131dc314 xfs: Node xattrs
- Implemented node based extended attributes support

- Both Versions of xfs node based extended attributes can be read now

Change-Id: I2d2915029435e7722cf463b1e2b5579b361dd592
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5606
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2022-10-02 09:30:26 +00:00
Mashijams
efd335c77a xfs: leaf xattrs
- Implemented leaf based extended attributes on-disk headers

- Both version 4 and version 5 attributes can be read now

- Implemented all leaf headers check to ensure metadata integrity

Change-Id: Ifc3f2e433e991776bb02d1d38f621d5bd1554a4e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5600
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2022-10-02 09:30:26 +00:00
Humdinger
f9e7ef3248 DriveSetup: Sentence casing
Change-Id: I87d94ad7e344f4af6f4fbfec35fa88fc8acf31e4
2022-10-02 10:22:22 +02:00
Autocomitter
da7a1c5cc8 Update translations from Pootle 2022-10-01 08:21:00 +00:00
Jérôme Duval
96985b8860 kernel/device_manager: make sure we can reload the driver before unloading it
for instance usb drivers are unloaded when unused, but they will be
loaded again when a matching device appears. this can only work when
the boot device is already mounted.

Change-Id: Ia92c679cffb6a1fac143c9f8b3bb570fb4555719
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5706
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-10-01 08:08:30 +00:00
Augustin Cavalier
9004d85ec5 app_server: Automatically pick a larger font size on HiDPI screens.
Ideally DesktopSettings would take care of this. However, we cannot
put this logic into its _SetDefaults, because that runs before
we actually set (or confirm) a display mode, and so attempts to fetch
the display mode in that function will fail.

(FontManager initializes even earlier and thus also is an unsuitable
place for this logic.)

At present, it merely uses a 2x larger font size at resolutions >"4K"
and a 1.5x larger font size at resolutions between 1080p and 4K.
Further adjustments can be made as necessary later on.
2022-09-30 20:57:53 -04:00
Augustin Cavalier
0716e5094e app_server: Print specific error when failing to initialize virtual screens. 2022-09-30 20:55:29 -04:00
Augustin Cavalier
872ce8a1b4 app_server: Clean up default font size constants. 2022-09-30 20:53:44 -04:00
Augustin Cavalier
cde5ffa802 Tracker: Enable thumbnail generation by default.
Now that all known crashes and other instabilities relating to it
seem to be solved. Fixes #17726.
2022-09-30 05:05:40 -04:00
Augustin Cavalier
27846b5a81 Tracker: Use default menu font instead of plain font for context menus.
This code has been this way since the initial import to OpenTracker,
so why or how it wound up in here is a mystery which may remain unsolved.

Removing it does not seem to cause any problems, so let's do that.
Fixes #16625.
2022-09-30 05:05:33 -04:00
Augustin Cavalier
4198265fa0 build: Optimize for size in the bootloaders, not for speed.
This saves almost 100K in size:

BIOS: 367K -> 271K
EFI: 541K -> 454K

Fixes #17961.
2022-09-30 14:49:24 -04:00
Augustin Cavalier
86615b82db freebsd_network: Remove unneeded functions from if_var.h.
FreeBSD puts these in ifq.h (which we do not have), and no driver we
have actually uses them.

We can re-add the newer versions of them if we ever import a driver
which does.
2022-09-30 14:02:30 -04:00
Jérôme Duval
a4f09ce9d0 ext2: align dirent struct pointers with next_dirent()
Change-Id: Iaf102916d77f077c48348e2d1e7deff8f37d1232
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5634
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: David Karoly <karolyd577@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-09-30 17:13:14 +00:00
Jérôme Duval
e065d697fb Disk Device Manager: checks the raw content_name when editing a partition
also only provide a default name for partition containing a file system
fix #17958

Change-Id: Ib5a8928dc5272a400a99aa05b792201f3a6a2c7d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5705
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-09-30 17:10:39 +00:00
Augustin Cavalier
5b51027ca5 openbsd_network: Add a real implementation of MCLGETL.
The old alias had a number of shortcomings which made it not match
OpenBSD and thus special-casing had to be used in drivers. The new
version should match OpenBSD's semantics precisely.
2022-09-29 23:05:49 -04:00
Augustin Cavalier
5613c37e66 BootRules: Add -fvisibility=hidden to BootStaticLibrary as well.
Does not seem to affect the size of the bios_ia32 loader,
but takes the x86_64 EFI loader down from 678k -> 554k.
2022-09-29 10:09:00 -04:00
Alexander von Gluck IV
c2dcf10676 Revert "boot/efi/x86: enable support for 64-bit ELF"
This reverts commit 5897f7b623.

See #17961 for additional information. This breaks the official
builds by growing the bios_ia32 loader too much.

Change-Id: I63bc0c95839ef681a260efdd6ddf527d6699c1f4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5704
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-09-29 13:47:38 +00:00
Augustin Cavalier
b4a9a0c94f WebPositive: Actually load "zoom text only" setting and default it to false.
All other browsers have it default-off (if there is even a way to
enable it.) This makes it much easier to use Web+ on HiDPI, though
ideally it would automatically set a zoom factor on startup
correspondent to the system font size.
2022-09-28 22:30:51 -04:00
Augustin Cavalier
78ee50a272 InterfaceDefs: Specify INSETS constants in terms of SPACING constants.
They already used the same numeric values. Also reorder for consistency.
No functional change.
2022-09-28 19:47:38 -04:00
Augustin Cavalier
59d0a83200 Remove "font size / 12" calculations from various places.
Use spacing values from BControlLook instead.
2022-09-28 19:36:59 -04:00
Augustin Cavalier
396ffed536 ActivityMonitor: Remove non-Haiku code, use more spacing constants. 2022-09-28 19:33:51 -04:00
Augustin Cavalier
caf3ea9044 Remove unnecessary SetExplicitPreferredSize from translators using layouts. 2022-09-28 18:29:33 -04:00
Augustin Cavalier
6191e1b167 BootManager: Use BControlLook::ComposeIconSize().
Fixes #17909.
2022-09-28 17:55:10 -04:00
Augustin Cavalier
2ac78cc4d6 BootManager: Fix minimum window size assignment. 2022-09-28 17:54:54 -04:00
Augustin Cavalier
d3da4f984e FileTypes: Refactor icon handling to use BControlLook::ComposeIconSize().
Fixes #17907.
2022-09-28 17:41:27 -04:00
Augustin Cavalier
b25b415fb9 FileTypes: Fix file mode. 2022-09-28 17:40:44 -04:00
Augustin Cavalier
00c4575238 Debugger: Use StringWidth()+DefaultLabelSpacing() to determine column widths.
Much less cut off text in the default layout.
2022-09-28 17:13:07 -04:00
Augustin Cavalier
2bfacb1a20 Debugger: Adjust default weights of splitters in the main window.
Much more logical proportioning.
2022-09-28 17:12:33 -04:00
Augustin Cavalier
3c1cf7b294 NTFS: Use the new next_dirent utility function just like BFS. 2022-09-28 16:30:55 -04:00
Augustin Cavalier
e285b3071d Introduce a utility function for moving to the next dirent in read_dir.
This takes care of making sure the dirent buffer is properly aligned,
which it needs to be on some platforms (SPARC, ARM, etc.)

Change-Id: I9a6352b1e654c090a200770d51f96511ee024a99
2022-09-28 16:30:00 -04:00
Augustin Cavalier
e3197646ea kernel/lib: Fix reference to dirent.c after prior change. 2022-09-27 20:33:14 -04:00
Augustin Cavalier
a53cd0082a FirstBootPrompt: Appease GCC2. 2022-09-27 20:14:21 -04:00
Augustin Cavalier
ba59081e52 libroot: Implement readdir_r in terms of readdir.
Originally _r mostly avoided the buffers in the DIR* and invoked
_kern_read_dir correctly, however that did not interact properly
with the non-reentrant functions and so this method was reworked
some years ago to check entries_left and copy results out of the buffer.

However, that was done improperly; it just copied the structs,
which as they have a VLA at the end, meant the name entry was not
copied at all if an entry was read out of the buffer.

Since we have to read entries out of the buffer anyway,
just invoke the real readdir() and then memcpy what it returns.
Use an ErrnoMaintainer to prevent errno from being affected.
2022-09-27 20:11:54 -04:00
Augustin Cavalier
eafa0e1f49 libroot: Move dirent.c to C++. 2022-09-27 20:11:54 -04:00
Augustin Cavalier
a4d27987d2 KernelRules: Add the same -fvisibility=hidden logic in KernelStaticLibrary...
...as was already added to the regular (userland) StaticLibrary some
time ago. Shaves off double-digit percentages of the file size of
e.g. FreeBSD and OpenBSD network drivers.
2022-09-27 19:46:52 -04:00
Augustin Cavalier
3f3b84894b idualwifi & iaxwifi: Merge changes from OpenBSD. 2022-09-27 19:34:43 -04:00
Augustin Cavalier
d052479f68 Input preferences: Use BControlLook::ComposeIconSize().
And do some other cleanup while at it.

Fixes #17919.
2022-09-27 18:57:31 -04:00
Augustin Cavalier
6a287ced0b Keymap: Use BControlLook::ComposeIconSize for the conflict view.
Fixes #17911.
2022-09-27 18:38:49 -04:00
Augustin Cavalier
2d9b9e209b IconView: Scale icon_size constants.
Part of #17914. Also affects DataTranslators.
2022-09-27 18:32:45 -04:00
Augustin Cavalier
1272bd2a7f FirstBootPrompt: Scale the button icons.
Part of #17914.
2022-09-27 18:30:59 -04:00