]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
add function to convert access flags to legacy open mode
authorJeff Layton <jlayton@redhat.com>
Wed, 14 May 2008 17:22:03 +0000 (10:22 -0700)
committerSteve French <sfrench@us.ibm.com>
Wed, 14 May 2008 18:45:30 +0000 (18:45 +0000)
commit35fc37d5175091c36d034a28c057da0f9594ee7e
treed28ee6f3000fd0c3a03fc95f044544b1d6413c08
parente10f7b551d2a79b113d5ce66b5dc9f3657035445
add function to convert access flags to legacy open mode

SMBLegacyOpen always opens a file as r/w. This could be problematic
for files with ATTR_READONLY set. Have it interpret the access_mode
into a sane open mode.

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c
fs/cifs/inode.c