iso9660: cosmetical fix

Stanislav Brabec (utx@k332.feld.cvut.cz)
Fri, 1 Oct 1999 16:36:42 +0200


--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii

Hallo kernel developers,

I have had "problem":
I needed to mount cdrom with special permission mask.

I gave umask=111. Nothing happened:

-- because umask, mentioned for such use in Documentation/filesystems/isofs.txt
is no longer implemented, its new name is mode.

-- because default filesystem for mode is decimal, not octal, as is in other
filesystems.

Fact, that I must not use umask=111, but mode=0111, required to me long searching.

So there is small fix of iso9660 fs and its docs. I have sent it
about half year ago, but with no result (except reply of Stephen C. Tweedie).

-- 
Stanislav Brabec
################
Build own GNU-Linux / Postavte si GNU-Linux
http://www.penguin.cz/~utx/build.html ftp://ftp.penguin.cz/pub/users/utx/

--LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=isofs_cosmetical_fix

--- linux/fs/isofs/inode.c.orig Fri Aug 27 00:18:06 1999 +++ linux/fs/isofs/inode.c Fri Sep 10 10:27:47 1999 @@ -376,9 +376,14 @@ else if (!strcmp(value,"auto")) ; else return 0; } + else if (value && !strcmp(this_char,"mode")) { + char * vpnt = value; + unsigned int ivalue = simple_strtoul(vpnt, &vpnt, 8); + if (*vpnt) return 0; + popt->mode = ivalue; + } else if (value && (!strcmp(this_char,"block") || - !strcmp(this_char,"mode") || !strcmp(this_char,"uid") || !strcmp(this_char,"gid"))) { char * vpnt = value; @@ -397,9 +402,6 @@ case 'g': popt->gid = ivalue; break; - case 'm': - popt->mode = ivalue; - break; } } else return 1; --- linux/Documentation/filesystems/isofs.txt.orig Wed Jun 24 23:30:07 1998 +++ linux/Documentation/filesystems/isofs.txt Sat Apr 24 22:07:54 1999 @@ -2,7 +2,6 @@ gid=nnn All files in the partition will be in group nnn. uid=nnn All files in the partition will be owned by user id nnn. - umask=nnn The permission mask (see umask(1)) for the partition. Mount options that are the same as vfat partitions. These are only useful when using discs encoded using Microsoft's Joliet extensions.

--LQksG6bCIzRHxTLp--

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