public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* isofs unhide option:  troubles with Wine
@ 2002-05-25  4:30 Jeremy White
  2002-05-25 13:46 ` Olaf Dietsche
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Jeremy White @ 2002-05-25  4:30 UTC (permalink / raw)
  To: linux-kernel

Greetings,

When installing Microsoft Office with Wine, we find that some
MS CDs have certain files marked as hidden on the CD.

With the default isofs mount options, these files are
completely inaccessible.  (Relevant code is in 
fs/isofs/namei.c, and dir.c; search for unhide).

You're forced to remount the CD with the -unhide option
to make these files visible.

Now, forgive me if I've overlooked TFM, but I did not
find any discussion of the unhide option in the archives
I could search.

Further, imho, the unhide code is incorrectly implemented
in Linux.

The use of the 'hide' bit in Windows has no good parallel in
Linux.  The current implementation treats a hidden file
as if it didn't exist at all, there is no possible way 
a user space program can see that file.  In Windows, the
file just is hidden from 'normal' programs, you can still
get to the file if you work hard enough.

Further, I hypothesize (perhaps wrongly) that the only use
of this hidden bit is on Windows CDs, and largely on MS
Office CDs, and so I think it is reasonable for me to
call for a change.  (Understand, I'm trying to help
very basic users to use MS Office; for them to have to
su to root, umount, and then mount -o unhide, is a pretty tough thing
to ask.  See the following article to see why I'm so upset about this:
    http://biz.yahoo.com/fo/020523/linux_gets_friendlier_1.html)

Unfortunately, I don't have a strong feeling for what the
'right' solution is.  I see several options:

    1.  Invert the logic of the option, make it 'hide' instead
        of unhide, and so unhide is the default.

    2.  Make it possible to set this mount option from user
        space (I don't like this, but it would get me around
        the problem).

    3.  Make it so that isofs/dir.c still strips out hidden
        files, but enable isofs/namei.c to return a hidden file that
        is opened directly by name.

I am willing to submit a patch to implement the appropriate solution.

Comments and opinions are greatly appreciated; please copy me directly
though, as I am not subscribed.

Thanks,

Jeremy


^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: isofs unhide option:  troubles with Wine
@ 2002-05-25 17:04 Andries.Brouwer
  0 siblings, 0 replies; 25+ messages in thread
From: Andries.Brouwer @ 2002-05-25 17:04 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel, olaf.dietsche--list.linux-kernel


>> Further, I would argue that if you accept that unhide is a
>> reasonable default for me to force into the fstab, then
>> it is a reasonable default for the kernel to have.

> I'd tend to agree, simply because the defaults ought to make things
> possible rather than impossible. Question is - why was hide the default
> and what was that decision based upon ?

Inspection of the patch history shows:

1.1.63:
+                 /* Do not report hidden or associated files */

1.1.94:
+                       if (inode->i_sb->u.isofs_sb.s_unhide=='n') {
				/* Do not report hidden or associated files */
+       popt->unhide = 'n';

I do not think my linux-kernel archives contain any discussion.

As far as I can see there is no objection at all to make unhide
the default.

But note:
The test &5 tests two bits.
bit 0 is the hidden bit - see ECMA 119 - 9.1.6
bit 2 is the test for associated files.

http://developer.apple.com/technotes/fl/fl_36.html explains:

-----------------------------------------------------------------
Associated files are exactly analogous to resource forks.

An associated file is defined as having the associated bit set in
the file flags byte of the directory record. It has exactly the same
file identifier as its counterpart, and resides immediately before
its counterpart in the directory. The associated file is treated as the
resource fork, its counterpart is treated as the data fork of the file.

For example, if a file "FOO.;1" has an associated file, there will be
two adjacent directory records named "FOO.;1"; the first one (the
resource fork) will have the associated bit set, the second one
(the data fork) will have the associated bit clear.
-----------------------------------------------------------------

I think that the right default would be to show hidden files,
but not to show associated files.


Andries

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2002-06-19  2:38 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-25  4:30 isofs unhide option: troubles with Wine Jeremy White
2002-05-25 13:46 ` Olaf Dietsche
2002-05-25 13:49   ` Jeremy White
2002-05-25 14:01     ` Joseph Mathewson
2002-05-25 14:23       ` Jeremy White
2002-06-10  3:12       ` Francois Gouget
2002-06-10 11:52         ` Thunder from the hill
2002-06-10 12:38           ` Guest section DW
2002-05-25 15:50     ` Alan Cox
2002-06-03 17:05       ` Jeremy White
2002-06-03 18:06         ` Thunder from the hill
2002-06-03 18:40           ` H. Peter Anvin
2002-06-03 19:40             ` Thunder from the hill
2002-06-03 19:43               ` H. Peter Anvin
2002-06-04  0:23         ` Alan Cox
2002-06-19  2:36           ` Jeremy White
2002-05-25 14:18 ` Ruth Ivimey-Cook
2002-05-25 14:25   ` Jeremy White
2002-05-25 19:31   ` H. Peter Anvin
2002-05-25 19:40 ` Linus Torvalds
2002-05-25 20:31   ` H. Peter Anvin
2002-05-25 21:20     ` Lionel Bouton
2002-05-25 21:51       ` H. Peter Anvin
2002-05-25 21:07 ` Lionel Bouton
  -- strict thread matches above, loose matches on Subject: below --
2002-05-25 17:04 Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox