Re: isofs unhide option: troubles with Wine

From: Thunder from the hill (thunder@ngforever.de)
Date: Mon Jun 10 2002 - 06:52:53 EST


Hi,

On Sun, 9 Jun 2002, Francois Gouget wrote:
> 2. or should it completely ignore the 'hidden' bit?

I already _had_ a patch which did exactly this.

Regards,
Thunder

--- linux-2.5.20/fs/isofs/namei.c Sun Jun 2 19:44:52 2002
+++ thunder-2.5.20/fs/isofs/namei.c Mon Jun 3 17:27:38 2002
@@ -139,20 +139,8 @@
                         dpnt = tmpname;
                 }
 
- /*
- * Skip hidden or associated files unless unhide is set
- */
- match = 0;
- if (dlen > 0 &&
- (!(de->flags[-sbi->s_high_sierra] & 5)
- || sbi->s_unhide == 'y'))
- {
- match = (isofs_cmp(dentry,dpnt,dlen) == 0);
- }
- if (match) {
- if (bh) brelse(bh);
- return inode_number;
- }
+ if (bh) brelse(bh);
+ return inode_number;
         }
         if (bh) brelse(bh);
         return 0;
--- linux-2.5.20/fs/isofs/dir.c Sun Jun 2 19:44:45 2002
+++ thunder-2.5.20/fs/isofs/dir.c Mon Jun 3 17:32:30 2002
@@ -192,16 +192,6 @@
                         continue;
                 }
 
- /* Handle everything else. Do name translation if there
- is no Rock Ridge NM field. */
- if (sbi->s_unhide == 'n') {
- /* Do not report hidden or associated files */
- if (de->flags[-sbi->s_high_sierra] & 5) {
- filp->f_pos += de_len;
- continue;
- }
- }
-
                 map = 1;
                 if (sbi->s_rock) {
                         len = get_rock_ridge_filename(de, tmpname, inode);

-- 
German attitude becoming        |	Thunder from the hill at ngforever
rightaway popular:		|
       "Get outa my way,  	|	free inhabitant not directly
    for I got a mobile phone!"	|	belonging anywhere

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:16 EST