Browsing this Thread:
1 Anonymous Users
|
Re: clarification
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
We only need to care about AmigaDOS. ![]() Quote: Sure there are a couple more that should not be used as part of a volume name. We only need to chose one. Quote: I dont get it, why it must look so exotic Only recognizable as a special case treatment. Quote: or extreemly short?? Because volume names can be long, so the "adjusted" volume name can exceed the allowed length. Quote: Using the device name with a hint to the original label would be unique and sufficiant, without causing trouble while accessing on cli. See above. Also pay attention to the fact that volumes can rest locked even when they are extracted by the system. If you insert them again, another clash is introduced and should be handled creating a new special volume name, since there's no way to mark as "unique" a volume. Adding prefixes or appending suffixes will quickly run out of the maximum allowed length for a volume. Unless an unique id policy is used. ![]() Quote:
Absolutely. That was the case. ![]() Quote: So I shall use "beeing shown as" in future posts. Or "work:" shown as "work/0:". ![]()
Posted on: 2015/5/16 10:03
|
|||
|
||||
|
clarification
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
After reading some posts again, I figured it might not been clear, what I meant by "renaming" or "relabeling" in case of volume label duplication.
I did NOT mean a pernanent real renaming of any volume, but a smart way to show a different label for a volume, if the name alredy exists in the system. Just for the time beeing mounted. Anything permanent would be insane of course! So I shall use "beeing shown as" in future posts. ![]() For example: A partitition on a usb-stick is labeled "work:" but a partition on the harddisk also labeled "work:" is aready mounted at the time the usb-stick is pluged in. So "work:" on the stick will be shown as (mounted as) "hu0_work:" and can be reached under that temporal name.
Posted on: 2015/5/16 8:34
Edited by cybergorf on 2015/5/16 12:08:02
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Problematic charakters:
? # * or any wildcard in dos or unix Space - yes its allowed but needs always spaeciel treatment in cli << >> < > | - pipe symbols lead to problems also / - as mentioned Sure there are a couple more that should not be used as part of a volume name. I dont get it, why it must look so exotic or extreemly short?? Using the device name with a hint to the original label would be unique and sufficiant, without causing trouble while accessing on cli.
Posted on: 2015/5/16 8:22
Edited by cybergorf on 2015/5/16 8:53:08
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
Very roughly, just to give an idea on how to implement it:
if volume_name in system.volumes:
Quote: I assumed this would be based on something like serial number (which can be quite too long for normal usage). Every conflicting volume has it's own "serial number generator", so the length of those special volume names is fairly limited. Also my algorithm provides the shortest special volume name, because it uses all available characters allowed by a filesystem to generate every "digit" for the serial id. Let's say that the filesystem characters set have 80 characters available. It means that we can have 80 unique special volume names for each conflicting volume, whose total length is len(base_volume_name) + 2 (one for the special separator + one for the serial number digit). When the system has used 80 special volumes, then it needs to use 2 "digits" for the next ones, so he can generate another 80 * 80 = 6400 special volumes. 80 * 80 * 80 = 512000 special volumes with 3 "digits". And so on. Is it enough or not? ![]() Quote: But indeed, the most important would be to be able to distinguish those from 'normal' naming. It's question of using a special separator, if '/' isn't good. Only that. The rest is solved (see above).
Posted on: 2015/5/15 22:10
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
@cdimauro:
in that case i'm intrigued... where's the unique id coming from ? I assumed this would be based on something like serial number (which can be quite too long for normal usage). But indeed, the most important would be to be able to distinguish those from 'normal' naming.
Posted on: 2015/5/15 21:34
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
In case of limited length reached by the solution that I've presented.
Posted on: 2015/5/15 21:25
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
It was just an example. The problem is that using a valid/allowed character as a separator can lead to new clashes, whereas we know that "/" normally is not allowed as a filesystem identifier. Do you have another suggestion for such special separator? Quote: Followed by a "space"... ok now you are kidding me ... you are, aren't you??? Spaces are allowed on filesystem identifiers. Even on normal volume labels. Remember that we are talking about a special situation, just to mark duplicated volume names. A space is like any other character which a filesystem can use: why do you want to remove it? Anyway, a subset of the normal filesystem character set can be selected for this special case. P.S. We are discussing about details, and not the idea.
Posted on: 2015/5/15 21:23
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
If all else fails because of volume names that are limited in length i think i rather see a list like:
- conflict_001: - conflict_002: ... - conflict_nnn:
Posted on: 2015/5/15 21:19
|
|||
|
||||
|
Re: FAT32 USB stick and fat-handler
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
No.... please, please don?t put an escape character like "/" anywhere near an ASCII string, if you are not forced to do so by aliens or god. Followed by a "space"... ok now you are kidding me ... you are, aren't you???
Posted on: 2015/5/15 21:00
|
|||
|
||||
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.






