Skip to content
  1. Aug 06, 2010
    • Wang Lei's avatar
      DNS: Separate out CIFS DNS Resolver code · 1a4240f4
      Wang Lei authored
      
      
      Separate out the DNS resolver key type from the CIFS filesystem into its own
      module so that it can be made available for general use, including the AFS
      filesystem module.
      
      This facility makes it possible for the kernel to upcall to userspace to have
      it issue DNS requests, package up the replies and present them to the kernel
      in a useful form.  The kernel is then able to cache the DNS replies as keys
      can be retained in keyrings.
      
      Resolver keys are of type "dns_resolver" and have a case-insensitive
      description that is of the form "[<type>:]<domain_name>".  The optional <type>
      indicates the particular DNS lookup and packaging that's required.  The
      <domain_name> is the query to be made.
      
      If <type> isn't given, a basic hostname to IP address lookup is made, and the
      result is stored in the key in the form of a printable string consisting of a
      comma-separated list of IPv4 and IPv6 addresses.
      
      This key type is supported by userspace helpers driven from /sbin/request-key
      and configured through /etc/request-key.conf.  The cifs.upcall utility is
      invoked for UNC path server name to IP address resolution.
      
      The CIFS functionality is encapsulated by the dns_resolve_unc_to_ip() function,
      which is used to resolve a UNC path to an IP address for CIFS filesystem.  This
      part remains in the CIFS module for now.
      
      See the added Documentation/networking/dns_resolver.txt for more information.
      
      Signed-off-by: default avatarWang Lei <wang840925@gmail.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      1a4240f4
    • Jeff Layton's avatar
      cifs: account for new creduid=0x%x parameter in spnego upcall string · ba5dadbf
      Jeff Layton authored
      
      
      The commit that added the creduid=0x%x parameter failed to increase the
      buffer allocation to account for it.
      
      Reported-by: default avatarJ. Bruce Fields <bfields@fieldses.org>
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      ba5dadbf
    • Jeff Layton's avatar
      cifs: reduce false positives with inode aliasing serverino autodisable · 5acfec25
      Jeff Layton authored
      
      
      It turns out that not all directory inodes with dentries on the
      i_dentry list are unusable here. We only consider them unusable if they
      are still hashed or if they have a root dentry attached.
      
      Full disclosure -- this check is inherently racy. There's nothing that
      stops someone from slapping a new dentry onto this inode just after
      this check, or hashing an existing one that's already attached. So,
      this is really a "best effort" thing to work around misbehaving servers.
      
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      5acfec25
    • David Howells's avatar
      CIFS: Make cifs_convert_address() take a const src pointer and a length · 67b7626a
      David Howells authored
      
      
      Make cifs_convert_address() take a const src pointer and a length so that all
      the strlen() calls in their can be cut out and to make it unnecessary to modify
      the src string.
      
      Also return the data length from dns_resolve_server_name_to_ip() so that a
      strlen() can be cut out of cifs_compose_mount_options() too.
      
      Acked-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      67b7626a
    • Suresh Jayaraman's avatar
      cifs: show features compiled in as part of DebugData · f579903e
      Suresh Jayaraman authored
      
      
      Fixed the nit pointed out by Jeff.
      
      From: Suresh Jayaraman <sjayaraman@suse.de>
      Subject: [PATCH 1/2] cifs: show features compiled in as part of DebugData
      
      This patch adds the features that are compiled in to the CIFS debugging data
      as shown below:
      
      	$cat /proc/fs/cifs/DebugData
      	Display Internal CIFS Data Structures for Debugging
      	---------------------------------------------------
      	CIFS Version 1.64
      	Features: dfs fscache posix spnego xattr
      	Active VFS Requests: 0
      	...
      
      This patch provides a definitive way to tell what features are currently
      enabled in the running kernel. This could also help debugging.
      
      Signed-off-by: default avatarSuresh Jayaraman <sjayaraman@suse.de>
      Cc: Jeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      f579903e
    • Suresh Jayaraman's avatar
      cifs: update README · 95c99904
      Suresh Jayaraman authored
      
      
      Update the README file to reflect that now DebugData shows all
      the features enabled.
      
      Signed-off-by: default avatarSuresh Jayaraman <sjayaraman@suse.de>
      Cc: Jeff Layton <jlayton@redhat.com>
      --
       fs/cifs/README |    5 +++--
       1 files changed, 3 insertions(+), 2 deletions(-)
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      95c99904
    • Linus Torvalds's avatar
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · cdd854bc
      Linus Torvalds authored
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (79 commits)
        powerpc/8xx: Add support for the MPC8xx based boards from TQC
        powerpc/85xx: Introduce support for the Freescale P1022DS reference board
        powerpc/85xx: Adding DTS for the STx GP3-SSA MPC8555 board
        powerpc/85xx: Change deprecated binding for 85xx-based boards
        powerpc/tqm85xx: add a quirk for ti1520 PCMCIA bridge
        powerpc/tqm85xx: update PCI interrupt-map attribute
        powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale
        powerpc/fsl_pci: add quirk for mpc8308 pcie bridge
        powerpc/85xx: Cleanup QE initialization for MPC85xxMDS boards
        powerpc/85xx: Fix booting for P1021MDS boards
        powerpc/85xx: Fix SWIOTLB initalization for MPC85xxMDS boards
        powerpc/85xx: kexec for SMP 85xx BookE systems
        powerpc/5200/i2c: improve i2c bus error recovery
        of/xilinxfb: update tft compatible versions
        powerpc/fsl-diu-fb: Support setting display mode using EDID
        powerpc/5121: doc/dts-bindings: update doc of FSL DIU bindings
        powerpc/5121: shared DIU framebuffer support
        powerpc/5121: move fsl-diu-fb.h to include/linux
        powerpc/5121: fsl-diu-fb: fix issue with re-enabling DIU area descriptor
        powerpc/512x: add clock structure for Video-IN (VIU) unit
        ...
      cdd854bc
  2. Aug 05, 2010