1. 15 5月, 2012 10 次提交
  2. 28 4月, 2012 1 次提交
  3. 21 4月, 2012 1 次提交
    • J
      nfs: Enclose hostname in brackets when needed in nfs_do_root_mount · 98a2139f
      Jan Kara 提交于
      When hostname contains colon (e.g. when it is an IPv6 address) it needs
      to be enclosed in brackets to make parsing of NFS device string possible.
      Fix nfs_do_root_mount() to enclose hostname properly when needed. NFS code
      actually does not need this as it does not parse the string passed by
      nfs_do_root_mount() but the device string is exposed to userspace in
      /proc/mounts.
      
      CC: Josh Boyer <jwboyer@redhat.com>
      CC: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: NJan Kara <jack@suse.cz>
      Cc: stable@vger.kernel.org
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      98a2139f
  4. 29 3月, 2012 1 次提交
  5. 21 3月, 2012 1 次提交
    • V
      NFS: fix sb->s_id in nfs debug prints · 5a7c9eec
      Vivek Trivedi 提交于
      NFS bdi flush thread in ps output is printed like "flush-<major number
      in decimal>:<minor number in decimal>"
      For example:
      $ ps aux | grep flush
       2079 root         0 SW   [flush-0:18]
                                       ^^^^
      
      nfs_bdi_register()
      ==> bdi_register_dev()
      ==> bdi_register(bdi, NULL, "%u:%u", MAJOR(dev), MINOR(dev));
                                   ^^^^^
      
      However, NFS sb->s_id store major:minor number in hex:
      
      nfs_initialise_sb()
      ==>         snprintf(sb->s_id, sizeof(sb->s_id),
                       "%x:%x", MAJOR(sb->s_dev), MINOR(sb->s_dev));
                        ^^^^^
      
      If we enable nfs debug prints using command:
      $ rpcdebug -m nfs -s all
      
      write to a file:
      $ dd if=/dev/zero of=<NFS Mount>/testfile.txt bs=32768 count=1
      
      Without Patch:
      [ 2431.032000] NFS:     0 initiated write call (req 0:12/40, 32768 bytes
      @ offset 0)                                         ^^^^
      
      With Patch:
      [ 2431.032000] NFS:     0 initiated write call (req 0:18/40, 32768 bytes
      @ offset 0)                                         ^^^^
      
      We should store NFS "s->s_id" in decimal to avoid confusion between NFS
      flush thread name(in ps output) and NFS debug prints.
      Signed-off-by: NVivek Trivedi <vtrivedi018@gmail.com>
      Signed-off-by: NNamjae Jeon <linkinjeon@gmail.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      5a7c9eec
  6. 06 3月, 2012 1 次提交
  7. 03 3月, 2012 5 次提交
  8. 02 3月, 2012 1 次提交
  9. 19 2月, 2012 1 次提交
  10. 15 2月, 2012 2 次提交
  11. 07 2月, 2012 1 次提交
  12. 01 2月, 2012 4 次提交
  13. 07 1月, 2012 4 次提交
  14. 05 1月, 2012 1 次提交
    • J
      nfs: fix regression in handling of context= option in NFSv4 · 8a0d551a
      Jeff Layton 提交于
      Setting the security context of a NFSv4 mount via the context= mount
      option is currently broken. The NFSv4 codepath allocates a parsed
      options struct, and then parses the mount options to fill it. It
      eventually calls nfs4_remote_mount which calls security_init_mnt_opts.
      That clobbers the lsm_opts struct that was populated earlier. This bug
      also looks like it causes a small memory leak on each v4 mount where
      context= is used.
      
      Fix this by moving the initialization of the lsm_opts into
      nfs_alloc_parsed_mount_data. Also, add a destructor for
      nfs_parsed_mount_data to make it easier to free all of the allocations
      hanging off of it, and to ensure that the security_free_mnt_opts is
      called whenever security_init_mnt_opts is.
      
      I believe this regression was introduced quite some time ago, probably
      by commit c02d7adf.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      8a0d551a
  15. 04 1月, 2012 2 次提交
  16. 17 11月, 2011 2 次提交
  17. 19 10月, 2011 1 次提交
    • H
      nfs/super.c: local functions should be static · 45402c38
      H Hartley Sweeten 提交于
      commit ae50c0b5 "pnfs: client stats" added additional information to
      the output of /proc/self/mountstats. The new functions introduced are
      only used in this file and should be marked static.
      
      If CONFIG_NFS_V4_1 is not defined, empty stub functions are used.  If
      CONFIG_NFS_V4 is not defined these stub functions are not used at all.
      Adding static for the functions results in compile warnings:
      
      fs/nfs/super.c:743: warning: 'show_sessions' defined but not used
      fs/nfs/super.c:756: warning: 'show_pnfs' defined but not used
      
      Fix this by adding a #ifdef CONFIG_NFS_V4 guard around the two
      show_ functions.
      Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      45402c38
  18. 27 9月, 2011 1 次提交