Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
27 user(s) are online (21 user(s) are browsing Forum)

Members: 0
Guests: 27

more...


Browsing this Thread:   1 Anonymous Users




(1) 2 3 4 ... 7 »


Re: FAT32 USB stick and fat-handler
#64
Home away from home
Home away from home


See User information
Quote:

DizzyOfCRN wrote:
fat-handler should be fixed to use the serial number provided by the boot block. It may or may not contain a time stamp, but should provide unique serial number.

There might be some other issues in dos.library, specifically something related to the type of the doslist, eg. is it a list for an assignement or to a volume and comparison of labels that don't take that information to the equation.


Great!

so that might fix Magorium?s usb-stick problem, right?

Posted on: 2015/5/16 18:35
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Temporal Relabeling while Booting
#63
Home away from home
Home away from home


See User information
Quote:

magorium wrote:
....
Besides that i wanted to thank you for having taken the time to elaborate as that makes things more clear now. (i guess if i was smarter then i could have guessed your underlying idea, but that seemed to not have worked very well for me earlier in the discussion ).


Thats my foult, as I tend to not mentioning facts that seem obvious to me ... but only to me alone!

Quote:


I really would like to agree on that part, but be aware that this not a real solution for those that travel amongst the seas a lot and that not everyone is able to steer along-side the ice-berg (by that i meant have the actual rights to make those changes).



true for read only media.
but thats what our solution is good for: situations where double labeling can not be avoided.

Quote:

Your solution does not seem to make matters worse as they already are. I had to come to terms that it won't solve certain issues either. (see also later).


Yes, I am sorry .
It won't stop hunger in the world and it won't bring peace in the middle east...

Quote:

Now looking at your idea again and assuming i go along, there is the issue of naming left and which is what i worried about from the start (but your solution does not seems to address, which i assumed wrongly that it would).


Not sure what we are talking about now... maybe it will be clear later...

Quote:

You seem to introduce also something anew half way through:
Quote:

That not only forces Aros to boot from a certain device. It also gives the system a hint in what order volumes should be mounted.

As described above, AROS tries to boot from whatever device possible. In that stage i can only assume that the list in ram (as you mentioned it) is already (partial) in place.


Sure it is.
As Kalamatee pointed out, I have to investigate what structures in ram get filled by what functions exactly. And what triggers that events and when....
The important thing is: these lists are already there on AmigaOS/AROS
There are more entries the more devices are detected and the more volumes are mounted or assigns are executed.

Quote:

It seems undesirable to change entries in that list during boot-time. Especially since it could be that the desired boot-device (whether it is a user installed driver, mount or otherwise) actually relies on the properness of this list. (Since i'm not knowledable enough, please feel free to correct)


The trick is not to change entries, that are already there, but fill these lists with our corrected values.
Our fixing routine must sit in the function that reads values like e.g. label from the rdb and writes it to the structures in ram. BEFORE that writing takes place we test the new string against the others already in the list and change it if necessary.

Quote:

One could argue that this would be the user making worng assumptions, but we should be able to rely on something. Just as usual startup-sequence does rely on at least a couple of things.


and I do not want to change that...

Quote:

Say you have a perfectly working system based on your idea, and during boot AROS mounts a network drive. But alas, now that automatic renaming is into place, and in this particular case a pendrive was inserted that conflicts with the mounted name, we have a problem as we can't rely on the configured mountname anymore ?


Please keep in mind, that this scenario leads to a crash or freeze right now!
So clearly we don't make things worse, but increase the chance of successful booting.

(You should never take a network device for granted during booting anyway. So your startup-script should give a warning and continue (fail-safe) booting)

Quote:

Which also brings me to something i thought your idea would address, but obviously doesn't (so i am sorry for the confusion that might have brought). If during boot of the startup-sequence there is a check if a certain assign was made and in case not then assign it, that it can conflict with any of the other devices that were mounted. E.g. if i name my fat32 partition libs: i got a problem booting AROS properly.


That depends on, if we want our solution to take that situation into account.
We check against labels that are already in a list (devices). We can check agains any other list (assigns) as well or simply define a bunch of strings (libs, devs, ...). Once the code is in place, we could also check against forbidden characters in a name and replace them.

I think tools like format or hdtoolbox should not allow such a name in the first place.

Quote:

Not only that, but i if i would leave out the fat driver while booting, the problem re-appears. At least i would assume your idea causes the fat32 LIBS: volume to be renamed (guessing there, so feel free to help me out).


guess that should be taken into account as it would not expand our routine by much. so is cheap to implement.

Posted on: 2015/5/16 18:25

Edited by cybergorf on 2015/5/16 19:30:00
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: FAT32 USB stick and fat-handler
#62
Home away from home
Home away from home


See User information
fat-handler should be fixed to use the serial number provided by the boot block. It may or may not contain a time stamp, but should provide unique serial number.

There might be some other issues in dos.library, specifically something related to the type of the doslist, eg. is it a list for an assignement or to a volume and comparison of labels that don't take that information to the equation.

Posted on: 2015/5/16 17:59
Jyrki.J.Koivisto
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: clarification
#61
Home away from home
Home away from home


See User information
Quote:

cybergorf wrote:
Quote:

{ snipped }



"And now for something completely different..."

That seams to be way no. 837 to crash Aros.

It was number 666 on my list (or was it 999?)

Quote:

Sure it seams to be a bug in the same "region" (mounting related), but also could be something in Poseidon alone...

new thread?

you are correct, as ot was certainly different. i thought to catch my opportunity as dizzy isn't very forum active.

Posted on: 2015/5/16 16:51
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: clarification
#60
Home away from home
Home away from home


See User information
Quote:

cybergorf wrote:
Quote:

magorium wrote:

Yes, but that does not change the fact that the actual real stored in rdb device names differ. What you seem to propose (see, i need to guess again ;-p) is adding an extra layer taking out the actual real device name and mix something together based on the algorythm that you showed.

Although that might be a solution, i find it a rather odd one (but that might be just me).


ok, ok How to implement the desired behavior is already the next question. I think first we need to find a naming police we can agree to and that does improve things.

Actually i don't think it really. at least for AROS. I have no idea how classic solves these kind of things.

Quote:

But to have a look at this 2nd step anyway:

There is the volumenode structure in ram, that should store all kind of information like physical device, no. of blocks, size of blocks and finally the label!
So e.g. wanderer or shell don't care what is written in the rdb once the device is mounted.

Our fake-label is written in that structure during the mount process instead of the real label.

Apart from HD-Toolbox... i guess not. Since it's not common to obtain this information otherwise and/or directly you might be able to get away with things.

Posted on: 2015/5/16 16:47
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Temporal Relabeling while Booting
#59
Home away from home
Home away from home


See User information
Ok, i hope you don't mind to have not posted my reply to this post from you as my reply serves no purpose anymore.

Besides that i wanted to thank you for having taken the time to elaborate as that makes things more clear now. (i guess if i was smarter then i could have guessed your underlying idea, but that seemed to not have worked very well for me earlier in the discussion ).

Quote:

We can agree on "not booting at all" prevents all problems

Aaaaawh :dissapointed: but then we never reach the ice-berg

Quote:

We can also agree, that there should be no duplicate labels in the standard Aros setup. Meaning we are not aiming to provide a solution to boot into a system, with a lot of label-duplication as default option!

Volumes used by a user on a daily basis should be given unique labels. Once identified a duplication the volume should be relabeled permanently by the user, to avoid further conflicts!

I really would like to agree on that part, but be aware that this not a real solution for those that travel amongst the seas a lot and that not everyone is able to steer along-side the ice-berg (by that i meant have the actual rights to make those changes).

Your solution does not seem to make matters worse as they already are. I had to come to terms that it won't solve certain issues either. (see also later).

One of the problems encountered with booting is that AROS needs to get a hold on all possible devices that it might be able to boot from. In fact depending on which filesystem drivers are in place during boot, AROS actually tries to determine where to boot from (without user giving it any further details). And that can be any partition on any filesystem (in theory that is). As such devices/partitions all have to be in place for AROS to be able to determine what is a possible location to boot from.

That's also why the bootdevice option comes into place as well, so that you are able to specifically tell AROS where to boot from.


Now looking at your idea again and assuming i go along, there is the issue of naming left and which is what i worried about from the start (but your solution does not seems to address, which i assumed wrongly that it would).

You seem to introduce also something anew half way through:
Quote:

That not only forces Aros to boot from a certain device. It also gives the system a hint in what order volumes should be mounted.

As described above, AROS tries to boot from whatever device possible. In that stage i can only assume that the list in ram (as you mentioned it) is already (partial) in place.

It seems undesirable to change entries in that list during boot-time. Especially since it could be that the desired boot-device (whether it is a user installed driver, mount or otherwise) actually relies on the properness of this list. (Since i'm not knowledable enough, please feel free to correct)

One could argue that this would be the user making worng assumptions, but we should be able to rely on something. Just as usual startup-sequence does rely on at least a couple of things.

Say you have a perfectly working system based on your idea, and during boot AROS mounts a network drive. But alas, now that automatic renaming is into place, and in this particular case a pendrive was inserted that conflicts with the mounted name, we have a problem as we can't rely on the configured mountname anymore ?

Which also brings me to something i thought your idea would address, but obviously doesn't (so i am sorry for the confusion that might have brought). If during boot of the startup-sequence there is a check if a certain assign was made and in case not then assign it, that it can conflict with any of the other devices that were mounted. E.g. if i name my fat32 partition libs: i got a problem booting AROS properly.

Not only that, but i if i would leave out the fat driver while booting, the problem re-appears. At least i would assume your idea causes the fat32 LIBS: volume to be renamed (guessing there, so feel free to help me out).

Posted on: 2015/5/16 16:22
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: clarification
#58
Home away from home
Home away from home


See User information
Quote:

Kalamatee wrote:

IMHO -:

A> you need to check exactly how its handled on AmigaOS (what naming convention is used), otherwise scripts and such will be incompatible.
B> you need to find out where exactly this happens on AmigaOS and duplicate the behaviour. I suspect it is when the doslist entry is registered.


Yes you are absolutely right.
It would be the 2nd step, after we agreed on some better behavior. And that step would include exact analysts of where and how it is implemented.
A possible solution should be transparent and only change the according string in the right structure.

Posted on: 2015/5/16 15:34
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: clarification
#57
Home away from home
Home away from home


See User information
Quote:

cybergorf wrote:
Quote:

magorium wrote:

Yes, but that does not change the fact that the actual real stored in rdb device names differ. What you seem to propose (see, i need to guess again ;-p) is adding an extra layer taking out the actual real device name and mix something together based on the algorythm that you showed.

Although that might be a solution, i find it a rather odd one (but that might be just me).


ok, ok How to implement the desired behavior is already the next question. I think first we need to find a naming police we can agree to and that does improve things.

But to have a look at this 2nd step anyway:

There is the volumenode structure in ram, that should store all kind of information like physical device, no. of blocks, size of blocks and finally the label!
So e.g. wanderer or shell don't care what is written in the rdb once the device is mounted.
Our fake-label is written in that structure during the mount process instead of the real label.


IMHO -:

A> you need to check exactly how its handled on AmigaOS (what naming convention is used), otherwise scripts and such will be incompatible.
B> you need to find out where exactly this happens on AmigaOS and duplicate the behaviour. I suspect it is when the doslist entry is registered.

Posted on: 2015/5/16 15:22
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: clarification
#56
Home away from home
Home away from home


See User information
Quote:

Now (i guess as that is the software telling me) poseidon goes haywire, as it seems it is not capable of determining the different pendrives from eachother. It attaches my freshly inserted pendrive but at the same time throws out my earlier attached devices, including mouse and keyboard.

That has nothing todo with a renaming of volume names and/or device names, but seems to be caused by a issue that lies underneath all of that. Mind, that i can only guess here, as i am not able to debug the issue myself. When i use a different brand/model pendrive in the same situation then everything seems to work for me as expected.



"And now for something completely different..."

That seams to be way no. 837 to crash Aros.
Sure it seams to be a bug in the same "region" (mounting related), but also could be something in Poseidon alone...

new thread?

Posted on: 2015/5/16 15:20
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: clarification
#55
Home away from home
Home away from home


See User information
Quote:

magorium wrote:

Yes, but that does not change the fact that the actual real stored in rdb device names differ. What you seem to propose (see, i need to guess again ;-p) is adding an extra layer taking out the actual real device name and mix something together based on the algorythm that you showed.

Although that might be a solution, i find it a rather odd one (but that might be just me).


ok, ok How to implement the desired behavior is already the next question. I think first we need to find a naming police we can agree to and that does improve things.

But to have a look at this 2nd step anyway:

There is the volumenode structure in ram, that should store all kind of information like physical device, no. of blocks, size of blocks and finally the label!
So e.g. wanderer or shell don't care what is written in the rdb once the device is mounted.
Our fake-label is written in that structure during the mount process instead of the real label.

Posted on: 2015/5/16 15:02
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 3 4 ... 7 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project