• J
    cifs: handle "sloppy" option appropriately · d8162558
    Jeff Layton 提交于
    cifs.ko has historically been tolerant of options that it does not
    recognize. This is not normal behavior for a filesystem however.
    Usually, it should only do this if you mount with '-s', and autofs
    generally passes -s to the mount command to allow this behavior.
    
    This patch makes cifs handle the option "sloppy" appropriately. If it's
    present in the options string, then the client will tolerate options
    that it doesn't recognize. If it's not present then the client will
    error out in the presence of options that it does not recognize and
    throw an error message explaining why.
    
    There is also a companion patch being proposed for mount.cifs to make it
    append "sloppy" to the mount options when passed the '-s' flag. This also
    should (obviously) be applied on top of Sachin's conversion to the
    standard option parser.
    Signed-off-by: NJeff Layton <jlayton@redhat.com>
    Acked-By: NSachin Prabhu <sprabhu@redhat.com>
    d8162558
connect.c 114.1 KB