Long filenames, how?

I’ve read somewhere that you need to put a special magic file in the root
directory for long filename support, but having searched the QDN knowledge
base and three likely qdn.public.* newsgroups, found nothing…

I have a zip file that contains a file whose name is 56 characters long.

I tried unzipping it on my 6.2.1 system, where the docs boldly claim:

Since the release of 6.2.1, the 48-character filename limit has
increased to 505 characters via a backwards-compatible extension. The
same on-disk format is retained, but new systems will see the longer
name, old ones will see a truncated 48-character name.

And yet, I can’t create the 56 character filename in “/tmp” (which is a
standard directory off of the /dev/hd0t79 disk).

Here’s the uname -a of the system:

QNX wintermute 6.2.1 2003/01/18-02:12:22est x86pc x86

Unzip simply states:

error: cannot create sm2_pmi_gui_state_prescribed_check_prescription.c

Thanks in advance,
-RK


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Hi Robert

I’ve never used it but I seem to remember that you need to:
touch .longfilenames
in the root directory of the mounted device.


Robert Krten <rk@parse.com> wrote:
RK > I’ve read somewhere that you need to put a special magic file in the root
RK > directory for long filename support, but having searched the QDN knowledge
RK > base and three likely qdn.public.* newsgroups, found nothing…

RK > I have a zip file that contains a file whose name is 56 characters long.

RK > I tried unzipping it on my 6.2.1 system, where the docs boldly claim:

RK > Since the release of 6.2.1, the 48-character filename limit has
RK > increased to 505 characters via a backwards-compatible extension. The
RK > same on-disk format is retained, but new systems will see the longer
RK > name, old ones will see a truncated 48-character name.

RK > And yet, I can’t create the 56 character filename in “/tmp” (which is a
RK > standard directory off of the /dev/hd0t79 disk).

RK > Here’s the uname -a of the system:

RK > QNX wintermute 6.2.1 2003/01/18-02:12:22est x86pc x86

RK > Unzip simply states:

RK > error: cannot create sm2_pmi_gui_state_prescribed_check_prescription.c

RK > Thanks in advance,
RK > -RK

RK > –
RK > [If replying via email, you’ll need to click on the URL that’s emailed to you
RK > afterwards to forward the email to me – spam filters and all that]
RK > Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/


Bill Caroselli – Q-TPS Consulting
1-(708) 308-4956 <== Note: New Number
qtps@earthlink.net

Robert Krten <rk@parse.com> wrote:
: I’ve read somewhere that you need to put a special magic file in the root
: directory for long filename support, but having searched the QDN knowledge
: base and three likely qdn.public.* newsgroups, found nothing…

Here’s the relevant section from the (in-progress) Neutrino User’s Guide:

The original QNX 4 filesystem supported filenames of no more than 48
characters long. Since the release of QNX Neutrino 6.2.1, this limit has
increased to 505 characters via a backwards-compatible extension.
The same on-disk format is retained; new systems see the longer
name, but old ones see a truncated 48-character name.

To enable support for long filenames on a new QNX 4 filesystem,
specify the -N option to dinit. To add long filename support to an
existing QNX 4 filesystem, login as root and create an empty,
read-only file named .longfilenames, owned by root in the root
directory of the filesystem:

cd <root_dir>
touch .longfilenames
chmod a=r .longfilenames
chown root:root .longfilenames

Note: After creating the .longfilenames file, you must restart the
filesystem for it to enable long filenames.

I hope this helps.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

“Steve Reid” <stever@qnx.com> wrote in message
news:bnlu3n$6f1$1@nntp.qnx.com

Robert Krten <> rk@parse.com> > wrote:
: I’ve read somewhere that you need to put a special magic file in the
root
: directory for long filename support, but having searched the QDN
knowledge
: base and three likely qdn.public.* newsgroups, found nothing…

Here’s the relevant section from the (in-progress) Neutrino User’s Guide:

The original QNX 4 filesystem supported filenames of no more than 48
characters long. Since the release of QNX Neutrino 6.2.1, this limit has
increased to 505 characters via a backwards-compatible extension.
The same on-disk format is retained; new systems see the longer
name, but old ones see a truncated 48-character name.

To enable support for long filenames on a new QNX 4 filesystem,
specify the -N option to dinit. To add long filename support to an
existing QNX 4 filesystem, login as root and create an empty,
read-only file named .longfilenames, owned by root in the root
directory of the filesystem:

One partition could have the feature enable and
another have it disable. Right?

cd <root_dir
touch .longfilenames
chmod a=r .longfilenames
chown root:root .longfilenames

Note: After creating the .longfilenames file, you must restart the
filesystem for it to enable long filenames.

I hope this helps.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Steve Reid <stever@qnx.com> wrote:

Robert Krten <> rk@parse.com> > wrote:
: I’ve read somewhere that you need to put a special magic file in the root
: directory for long filename support, but having searched the QDN knowledge
: base and three likely qdn.public.* newsgroups, found nothing…

Here’s the relevant section from the (in-progress) Neutrino User’s Guide:

The original QNX 4 filesystem supported filenames of no more than 48
characters long. Since the release of QNX Neutrino 6.2.1, this limit has
increased to 505 characters via a backwards-compatible extension.
The same on-disk format is retained; new systems see the longer
name, but old ones see a truncated 48-character name.

To enable support for long filenames on a new QNX 4 filesystem,
specify the -N option to dinit. To add long filename support to an
existing QNX 4 filesystem, login as root and create an empty,
read-only file named .longfilenames, owned by root in the root
directory of the filesystem:

cd <root_dir
touch .longfilenames
chmod a=r .longfilenames
chown root:root .longfilenames

Note: After creating the .longfilenames file, you must restart the
filesystem for it to enable long filenames.

I hope this helps.

Thanks (to you and Bill), worked perfectly :slight_smile:

Cheers,
-RK


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Robert Krten <rk@parse.com> wrote:

I’ve read somewhere that you need to put a special magic file in the root
directory for long filename support, but having searched the QDN knowledge
base and three likely qdn.public.* newsgroups, found nothing…

Have you tried the obvious, say, google for “qnx long filename”? :slight_smile:

Google is part of our lives now.

Frank

rk@parse.com sed in <bnlpn4$7lo$1@inn.qnx.com>:

I’ve read somewhere that you need to put a special magic file in the root
directory for long filename support, but having searched the QDN knowledge

“dinit” manual page already has the explanation, but dunno why it doesn’t
show up in KB search (stale index?)
(http://www.qnx.com/search/?query=long+filename&sitesection=qnx&number=0).

URL:http://www.qnx.com/developer/docs/momentics621_docs/neutrino/utilities/d/dinit.html

-N Enable support for long filenames (more than 48 characters) on this new
filesystem. To add long filename support to an existing QNX 4 compatible
filesystem: as root, create an empty, read-only file named .longfilenames
in the root directory of that filesystem.

kabe

“dinit” manual page already has the explanation, but dunno why it doesn’t
show up in KB search (stale index?)
(> http://www.qnx.com/search/?query=long+filename&sitesection=qnx&number=0> ).

To my knowledge the KB has not been updated for months.

  • Mario

Mario Charest postmaster@127.0.0.1 wrote:

To enable support for long filenames on a new QNX 4 filesystem,
specify the -N option to dinit. To add long filename support to an
existing QNX 4 filesystem, login as root and create an empty,
read-only file named .longfilenames, owned by root in the root
directory of the filesystem:


One partition could have the feature enable and
another have it disable. Right?

Right.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.