1. 28 4月, 2012 17 次提交
  2. 27 4月, 2012 4 次提交
  3. 22 4月, 2012 2 次提交
  4. 21 4月, 2012 4 次提交
  5. 20 4月, 2012 3 次提交
  6. 18 4月, 2012 1 次提交
  7. 29 3月, 2012 1 次提交
  8. 28 3月, 2012 3 次提交
  9. 25 3月, 2012 2 次提交
  10. 21 3月, 2012 3 次提交
    • 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
    • S
      pnfs-obj: autologin: Add support for protocol autologin · 18d98f6c
      Sachin Bhamare 提交于
      The pnfs-objects protocol mandates that we autologin into devices not
      present in the system, according to information specified in the
      get_device_info returned from the server.
      
      The Protocol specifies two login hints.
      1. An IP address:port combination
      2. A string URI which is constructed as a URL with a protocol prefix
         followed by :// and a string as address. For each  protocol prefix
         the string-address format might be different.
      
      We only support the second option. The first option is just redundant
      to the second one.
      NOTE: The Kernel part of autologin does not parse the URI string. It
      just channels it to a user-mode script. So any new login protocols should
      only update the user-mode script which is a part of the nfs-utils package,
      but the Kernel need not change.
      
      We implement the autologin by using the call_usermodehelper() API.
      (Thanks to Steve Dickson <steved@redhat.com> for pointing it out)
      So there is no running daemon needed, and/or special setup.
      
      We Add the osd_login_prog Kernel module parameters which defaults to:
      	/sbin/osd_login
      
      Kernel try's to upcall the program specified in osd_login_prog. If the file is
      not found or the execution fails Kernel will disable any farther upcalls, by
      zeroing out  osd_login_prog, Until Admin re-enables it by setting the
      osd_login_prog parameter to a proper program.
      
      Also add text about the osd_login program command line API to:
      	Documentation/filesystems/nfs/pnfs.txt
      and documentation of the new  osd_login_prog  module parameter to:
      	Documentation/kernel-parameters.txt
      
      TODO: Add timeout option in the case osd_login program gets
                    stuck
      Signed-off-by: NSachin Bhamare <sbhamare@panasas.com>
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      18d98f6c
    • B
      NFS: Remove nfs4_setup_sequence from generic rename code · c6bfa1a1
      Bryan Schumaker 提交于
      This is an NFS v4 specific operation, so it belongs in the NFS v4 code
      and not the generic client.
      Signed-off-by: NBryan Schumaker <bjschuma@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      c6bfa1a1