Summary: | Cannot change device name; doesn't work on devfs | ||
---|---|---|---|
Product: | [Applications] kfloppy | Reporter: | Thiago Macieira <thiago> |
Component: | general | Assignee: | Bernd Wuebben <wuebben> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nicolasg |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thiago Macieira
2004-11-30 03:02:28 UTC
Point 1 should work, as /dev/fd0u1440 is a fallback. As for point 2, what are the other formats named /dev/floppy/0u720 for example? (Note: bug #94392 is supposed to change exactly the same code.) Have a nice day! CVS commit by goutte: - fix errounous device names for floppy 1 (It accessed floppy 0 instead). (This is perhaps what was meant by point 1 of bug #94147) - add some alternate floppy device names CCBUG:94147 M +5 -5 format.cpp 1.19 --- kdeutils/kfloppy/format.cpp #1.18:1.19 @@ -167,11 +167,11 @@ void KFActionQueue::queue(KFAction *p) #ifdef ANY_LINUX const char *fd0H1440[] = { "/dev/fd0h1440", "/dev/fd0H1440", "/dev/fd0u1440", 0L } ; -const char *fd0D720[]={ "/dev/fd0u720", "/dev/fd0D720", 0L }; +const char *fd0D720[] = { "/dev/fd0u720", "/dev/fd0D720", "/dev/fd0h720", 0L }; const char *fd0h1200[]={ "/dev/fd0h1200", 0L }; -const char *fd0h360[]={ "/dev/fd0h360", 0L }; -const char *fd1H1440[] = { "/dev/fd1h1440", "/dev/fd1H1440", "/dev/fd0u1440", 0L } ; -const char *fd1D720[]={ "/dev/fd0u720", "/dev/fd1D720", 0L }; +const char *fd0h360[] = { "/dev/fd0h360", "/dev/fd0h360", "/dev/fd0d360", 0L }; +const char *fd1H1440[] = { "/dev/fd1h1440", "/dev/fd1H1440", "/dev/fd1u1440", 0L } ; +const char *fd1D720[] = { "/dev/fd1u720", "/dev/fd1D720", "/dev/fd1h720", 0L }; const char *fd1h1200[]={ "/dev/fd1h1200", 0L }; -const char *fd1h360[]={ "/dev/fd1h360", 0L }; +const char *fd1h360[] = { "/dev/fd1u360", "/dev/fd1h360", "/dev/fd1d360", 0L }; const char *fd0auto[] = { "/dev/fd0", 0L }; const char *fd1auto[] = { "/dev/fd1", 0L }; CVS commit by goutte: - add device names for devfs (Linux only... of course) Devfs users: please verify the names and what is the name for the 1200 format - fix a few typos in the device names CCBUG:94147 M +14 -6 format.cpp 1.20 --- kdeutils/kfloppy/format.cpp #1.19:1.20 @@ -166,12 +166,18 @@ void KFActionQueue::queue(KFAction *p) // #ifdef ANY_LINUX -const char *fd0H1440[] = { "/dev/fd0h1440", "/dev/fd0H1440", "/dev/fd0u1440", 0L } ; -const char *fd0D720[] = { "/dev/fd0u720", "/dev/fd0D720", "/dev/fd0h720", 0L }; + +// ### TODO: verify that all /dev/floppy really exist in devfs +// ### TODO: verify 1200 format (does /dev/fd?u1200 exist, devfs name?) + +const char *fd0H1440[] = { "/dev/fd0u1440", "/dev/floppy/0u1440", "/dev/fd0h1440", "/dev/fd0H1440", 0L } ; +const char *fd0D720[] = { "/dev/fd0u720", "/dev/floppy/0u720", "/dev/fd0D720", "/dev/fd0h720", 0L }; const char *fd0h1200[]={ "/dev/fd0h1200", 0L }; -const char *fd0h360[] = { "/dev/fd0h360", "/dev/fd0h360", "/dev/fd0d360", 0L }; -const char *fd1H1440[] = { "/dev/fd1h1440", "/dev/fd1H1440", "/dev/fd1u1440", 0L } ; -const char *fd1D720[] = { "/dev/fd1u720", "/dev/fd1D720", "/dev/fd1h720", 0L }; +const char *fd0h360[] = { "/dev/fd0u360", "/dev/floppy/0u360", "/dev/fd0h360", "/dev/fd0d360", 0L }; + +const char *fd1H1440[] = { "/dev/fd1u1440", "/dev/floppy/1u1440","/dev/fd1h1440", "/dev/fd1H1440", 0L } ; +const char *fd1D720[] = { "/dev/fd1u720", "/dev/floppy/1u720", "/dev/fd1D720", "/dev/fd1h720", 0L }; const char *fd1h1200[]={ "/dev/fd1h1200", 0L }; -const char *fd1h360[] = { "/dev/fd1u360", "/dev/fd1h360", "/dev/fd1d360", 0L }; +const char *fd1h360[] = { "/dev/fd1u360", "/dev/floppy/1u360","/dev/fd1h360", "/dev/fd1d360", 0L }; + const char *fd0auto[] = { "/dev/fd0", 0L }; const char *fd1auto[] = { "/dev/fd1", 0L }; My last 5 ΒΌ" drive is 3 computers back, so I don't know anymore how they're named. I do believe they have the naming is: s,/dev/fd,/dev/floppy/, So, /dev/fd0h1200 should be /dev/floppy/1h1200. Not sure, though. CVS commit by goutte: Add 1.2MB device in the case of devfs (For what I understand of the Linux floppy driver, there is only h1200, not any u1200.) BUG:94147 M +2 -5 format.cpp 1.21 --- kdeutils/kfloppy/format.cpp #1.20:1.21 @@ -167,15 +167,12 @@ void KFActionQueue::queue(KFAction *p) #ifdef ANY_LINUX -// ### TODO: verify that all /dev/floppy really exist in devfs -// ### TODO: verify 1200 format (does /dev/fd?u1200 exist, devfs name?) - const char *fd0H1440[] = { "/dev/fd0u1440", "/dev/floppy/0u1440", "/dev/fd0h1440", "/dev/fd0H1440", 0L } ; const char *fd0D720[] = { "/dev/fd0u720", "/dev/floppy/0u720", "/dev/fd0D720", "/dev/fd0h720", 0L }; -const char *fd0h1200[]={ "/dev/fd0h1200", 0L }; +const char *fd0h1200[] = { "/dev/fd0h1200", "/dev/floppy/0h1200", 0L }; const char *fd0h360[] = { "/dev/fd0u360", "/dev/floppy/0u360", "/dev/fd0h360", "/dev/fd0d360", 0L }; const char *fd1H1440[] = { "/dev/fd1u1440", "/dev/floppy/1u1440","/dev/fd1h1440", "/dev/fd1H1440", 0L } ; const char *fd1D720[] = { "/dev/fd1u720", "/dev/floppy/1u720", "/dev/fd1D720", "/dev/fd1h720", 0L }; -const char *fd1h1200[]={ "/dev/fd1h1200", 0L }; +const char *fd1h1200[] = { "/dev/fd1h1200", "/dev/floppy/1h1200", 0L }; const char *fd1h360[] = { "/dev/fd1u360", "/dev/floppy/1u360","/dev/fd1h360", "/dev/fd1d360", 0L }; |