1. 18 Oct, 2010 2 commits
    • Jeff Layton's avatar
      cifs: eliminate oflags option from cifs_new_fileinfo · f6a53460
      Jeff Layton authored
      Eliminate the poor, misunderstood "oflags" option from cifs_new_fileinfo.
      The callers mostly pass in the filp->f_flags here.
      
      That's not correct however since we're checking that value for
      the presence of FMODE_READ. Luckily that only affects how the f_list is
      ordered. What it really wants here is the file->f_mode. Just use that
      field from the filp to determine it.
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Reviewed-by: default avatarSuresh Jayaraman <sjayaraman@suse.de>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      f6a53460
    • Jeff Layton's avatar
      cifs: fix flags handling in cifs_posix_open · 608712fe
      Jeff Layton authored
      The way flags are passed and converted for cifs_posix_open is rather
      non-sensical. Some callers call cifs_posix_convert_flags on the flags
      before they pass them to cifs_posix_open, whereas some don't. Two flag
      conversion steps is just confusing though.
      
      Change the function instead to clearly expect input in f_flags format,
      and fix the callers to pass that in. Then, have cifs_posix_open call
      cifs_convert_posix_flags to do the conversion. Move cifs_posix_open to
      file.c as well so we can keep cifs_convert_posix_flags as a static
      function.
      
      Fix it also to not ignore O_CREAT, O_EXCL and O_TRUNC, and instead have
      cifs_reopen_file mask those bits off before calling cifs_posix_open.
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Reviewed-by: default avatarSuresh Jayaraman <sjayaraman@suse.de>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      608712fe
  2. 15 Oct, 2010 2 commits
  3. 14 Oct, 2010 1 commit
  4. 12 Oct, 2010 4 commits
  5. 08 Oct, 2010 6 commits
  6. 07 Oct, 2010 25 commits