1. 06 8月, 2010 9 次提交
    • S
      cifs: Include linux/err.h for IS_ERR and PTR_ERR · af352fe9
      Stephen Rothwell 提交于
      Fixes build errors:
      
      net/dns_resolver/dns_key.c: In function 'init_dns_resolver':
      net/dns_resolver/dns_key.c:170: error: implicit declaration of function 'IS_ERR'
      net/dns_resolver/dns_key.c:171: error: implicit declaration of function 'PTR_ERR'
      net/dns_resolver/dns_query.c: In function 'dns_query':
      net/dns_resolver/dns_query.c:126: error: implicit declaration of function 'IS_ERR'
      net/dns_resolver/dns_query.c:127: error: implicit declaration of function 'PTR_ERR'
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      af352fe9
    • W
      DNS: Make AFS go to the DNS for AFSDB records for unknown cells · 07567a55
      Wang Lei 提交于
      Add DNS query support for AFS so that it can get the IP addresses of Volume
      Location servers from the DNS using an AFSDB record.
      
      This requires userspace support.  /etc/request-key.conf must be configured to
      invoke a helper for dns_resolver type keys with a subtype of "afsdb:" in the
      description.
      Signed-off-by: NWang Lei <wang840925@gmail.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      07567a55
    • W
      DNS: Separate out CIFS DNS Resolver code · 1a4240f4
      Wang Lei 提交于
      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: NWang Lei <wang840925@gmail.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      1a4240f4
    • J
      cifs: account for new creduid=0x%x parameter in spnego upcall string · ba5dadbf
      Jeff Layton 提交于
      The commit that added the creduid=0x%x parameter failed to increase the
      buffer allocation to account for it.
      Reported-by: NJ. Bruce Fields <bfields@fieldses.org>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      ba5dadbf
    • J
      cifs: reduce false positives with inode aliasing serverino autodisable · 5acfec25
      Jeff Layton 提交于
      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: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      5acfec25
    • D
      CIFS: Make cifs_convert_address() take a const src pointer and a length · 67b7626a
      David Howells 提交于
      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: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      67b7626a
    • S
      cifs: show features compiled in as part of DebugData · f579903e
      Suresh Jayaraman 提交于
      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: NSuresh Jayaraman <sjayaraman@suse.de>
      Cc: Jeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      f579903e
    • S
      cifs: update README · 95c99904
      Suresh Jayaraman 提交于
      Update the README file to reflect that now DebugData shows all
      the features enabled.
      Signed-off-by: NSuresh Jayaraman <sjayaraman@suse.de>
      Cc: Jeff Layton <jlayton@redhat.com>
      --
       fs/cifs/README |    5 +++--
       1 files changed, 3 insertions(+), 2 deletions(-)
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      95c99904
    • L
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · cdd854bc
      Linus Torvalds 提交于
      * '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. 05 8月, 2010 31 次提交