plain-text registry hives

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

user222
Posts: 62
Joined: Thu Mar 03, 2005 1:21 pm

plain-text registry hives

Post by user222 » Thu Mar 03, 2005 1:29 pm

Why not use plain-text registry hives like WINE? It would be much easier to repair, as it could be edited with a text editor.

Gasmann
Posts: 283
Joined: Fri Nov 26, 2004 6:53 pm
Location: Germany
Contact:

Post by Gasmann » Thu Mar 03, 2005 2:23 pm


w3seek
Developer
Posts: 144
Joined: Tue Nov 23, 2004 12:12 am

Post by w3seek » Thu Mar 03, 2005 5:09 pm

i would be lost in a several hundreds of megabytes big text file... and the system would be horribly slow...

Dolphin
Posts: 10
Joined: Tue Mar 01, 2005 1:58 pm
Location: Germany

Post by Dolphin » Thu Mar 03, 2005 6:04 pm

I think the registry isn't a good invention at all. It is an evergrowing unmaintainable monster and I had to reinstall windows and all my programs in the last few years at least 3 times due to registry corruption / filesystem problems. Without a registry I wouldn't have had to reinstall all the programs I think (ok, DLLs may have been missing, but thats another story that isn't a good invention either :P)

But it is required to be compatible to MS Windows. Maybe it would be possible to keep a synced "human readable text registry" with the binary one. So that one can change the text registry and let the system sync the changes into the binary one? But I don't really see the benefits.... there are .REG files and Regedit, that should be enough, right?

I would instead prefer to have a really good auto-backup and restore mechanism though (not only for the registry) :wink:.
A working software is special state of chaos
that might behave as you have expected it to do.

user222
Posts: 62
Joined: Thu Mar 03, 2005 1:21 pm

Post by user222 » Thu Mar 03, 2005 6:55 pm

w3seek wrote:i would be lost in a several hundreds of megabytes big text file... and the system would be horribly slow...
Did you know that the Windows registry also has a maximum size? Also, each registry hive would need to have a separate file anyway, even if they are plain-text files.

counting_pine
Posts: 237
Joined: Fri Nov 26, 2004 10:44 pm
Location: Fallowfield

Post by counting_pine » Thu Mar 03, 2005 7:13 pm

I don't think it needs to be in plain text. A good backup system should help against problems with corruption, and a registry compacter/defragmenter/thingy should help keep it running smoothly.
I'd just be happy if there was an easy way of importing/exporting/editing without having to load the operating system. It's annoying when you can't load up Windows to fix a registry problem, because there's a registry problem stopping you loading Windows.

Dolphin
Posts: 10
Joined: Tue Mar 01, 2005 1:58 pm
Location: Germany

Post by Dolphin » Thu Mar 03, 2005 7:26 pm

Then the registry reapair program / function should be included in the bootloader or emergency tool (that is independent from any information the normal system uses (possible solution: a (dos) prompt + commandline tools???).

Another problem could be security issues with such a solution I think...
A working software is special state of chaos
that might behave as you have expected it to do.

counting_pine
Posts: 237
Joined: Fri Nov 26, 2004 10:44 pm
Location: Fallowfield

Post by counting_pine » Thu Mar 03, 2005 7:39 pm

Dolphin wrote:Another problem could be security issues with such a solution I think...
Does Windows have an answer to this problem? Or does it just rely on the fact that there's no easy way to edit the registry outside Windows?

Perhaps registry hives could be password protected?

Dolphin
Posts: 10
Joined: Tue Mar 01, 2005 1:58 pm
Location: Germany

Post by Dolphin » Thu Mar 03, 2005 8:10 pm

as far as i know it relies on the fact that you cannot edit the registry without running windows that is using this registry ... that's why the emergency console (win2k) is not working when the registry is badly damaged (you need to log in to repair your windows).

But I'm not a professional windows administrator, maybe there are some hidden ways...
A working software is special state of chaos
that might behave as you have expected it to do.

w3seek
Developer
Posts: 144
Joined: Tue Nov 23, 2004 12:12 am

Post by w3seek » Thu Mar 03, 2005 8:32 pm

user222 wrote:
w3seek wrote:i would be lost in a several hundreds of megabytes big text file... and the system would be horribly slow...
Did you know that the Windows registry also has a maximum size? Also, each registry hive would need to have a separate file anyway, even if they are plain-text files.
Of course I do, but a plain text registry will use *much* more space!

w3seek
Developer
Posts: 144
Joined: Tue Nov 23, 2004 12:12 am

Post by w3seek » Thu Mar 03, 2005 8:34 pm

whatever advantages a plain-text registry might have (i can't think of any) - we're not going to implement them, it'd be a huge step backwards to a wine-like registry.

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Thu Mar 03, 2005 8:36 pm

Have you ever thought of making two (or more) regestries ? One for regulary used keys, that could stay in Memory and one for fewer used ones.

SirTalon
Posts: 67
Joined: Sun Nov 28, 2004 8:53 pm

Post by SirTalon » Thu Mar 03, 2005 9:28 pm

Dolphin wrote:as far as i know it relies on the fact that you cannot edit the registry without running windows that is using this registry ... that's why the emergency console (win2k) is not working when the registry is badly damaged (you need to log in to repair your windows).

But I'm not a professional windows administrator, maybe there are some hidden ways...
I believe there are programs in Knoppix (or maybe it was another live cd?) to access Window's registry.

I'm not a big fan of one massive binary registry (ok well its actually like 5 massive binary files) since it provides several single point of failure to wipe out the entire OS.

As the binary registry files get bigger and bigger (they never seem to get smaller) the system gets slower and slower. At my old school all the computers in the computer lab always warn that the registry has reached it's maximum size at start up (win2k boxes, about 20 something of them in that lab). Some utilities that try to keep the registry clean should be implimited to prevent that sort of thing from happening. It doesn't help that so many programs leave junk in the registry when they are uninstalled.
"People do have a real life." -- w3seek

Guess that means I'm not a person :-D

counting_pine
Posts: 237
Joined: Fri Nov 26, 2004 10:44 pm
Location: Fallowfield

Post by counting_pine » Fri Mar 04, 2005 1:02 am

Dr. Fred wrote:Have you ever thought of making two (or more) regestries ? One for regulary used keys, that could stay in Memory and one for fewer used ones.
I'm not sure that could be done without harming Windows-compatibility.

MadRat
Posts: 243
Joined: Fri Feb 04, 2005 8:29 am
Contact:

Post by MadRat » Fri Mar 04, 2005 6:49 am

Windows already uses three registries for redundancy purposes. And a plain text file wouldn't be very wise when you consider the implications of Permissions, Ownership, and the distinctions between keys and value types.
*************************************
Go Huskers!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 14 guests