1. 17 1月, 2020 1 次提交
  2. 13 8月, 2018 1 次提交
    • P
      fs/9p/xattr.c: catch the error of p9_client_clunk when setting xattr failed · 3111784b
      piaojun 提交于
      In my testing, v9fs_fid_xattr_set will return successfully even if the
      backend ext4 filesystem has no space to store xattr key-value. That will
      cause inconsistent behavior between front end and back end. The reason is
      that lsetxattr will be triggered by p9_client_clunk, and unfortunately we
      did not catch the error. This patch will catch the error to notify upper
      caller.
      
      p9_client_clunk (in 9p)
        p9_client_rpc(clnt, P9_TCLUNK, "d", fid->fid);
          v9fs_clunk (in qemu)
            put_fid
              free_fid
                v9fs_xattr_fid_clunk
                  v9fs_co_lsetxattr
                    s->ops->lsetxattr
                      ext4_xattr_user_set (in host ext4 filesystem)
      
      Link: http://lkml.kernel.org/r/5B57EACC.2060900@huawei.comSigned-off-by: NJun Piao <piaojun@huawei.com>
      Cc: Eric Van Hensbergen <ericvh@gmail.com>
      Cc: Ron Minnich <rminnich@sandia.gov>
      Cc: Latchesar Ionkov <lucho@ionkov.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDominique Martinet <dominique.martinet@cea.fr>
      3111784b
  3. 03 8月, 2016 1 次提交
  4. 28 5月, 2016 1 次提交
  5. 11 4月, 2016 1 次提交
  6. 07 12月, 2015 1 次提交
  7. 14 11月, 2015 1 次提交
    • A
      9p: xattr simplifications · e409de99
      Andreas Gruenbacher 提交于
      Now that the xattr handler is passed to the xattr handler operations, we
      can use the same get and set operations for the user, trusted, and security
      xattr namespaces.  In those namespaces, we can access the full attribute
      name by "reattaching" the name prefix the vfs has skipped for us.  Add a
      xattr_full_name helper to make this obvious in the code.
      
      For the "system.posix_acl_access" and "system.posix_acl_default"
      attributes, handler->prefix is the full attribute name; the suffix is the
      empty string.
      Signed-off-by: NAndreas Gruenbacher <agruenba@redhat.com>
      Cc: Eric Van Hensbergen <ericvh@gmail.com>
      Cc: Ron Minnich <rminnich@sandia.gov>
      Cc: Latchesar Ionkov <lucho@ionkov.net>
      Cc: v9fs-developer@lists.sourceforge.net
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      e409de99
  8. 12 4月, 2015 2 次提交
  9. 02 6月, 2014 1 次提交
  10. 24 11月, 2013 1 次提交
  11. 08 7月, 2013 1 次提交
    • J
      fs/9p: xattr: add trusted and security namespaces · d9a73859
      Jim Garlick 提交于
      Allow requests for security.* and trusted.* xattr name spaces
      to pass through to server.
      
      The new files are 99% cut and paste from fs/9p/xattr_user.c with the
      namespaces changed.  It has the intended effect in superficial testing.
      I do not know much detail about how these namespaces are used, but passing
      them through to the server, which can decide whether to handle them or not,
      seems reasonable.
      
      I want to support a use case where an ext4 file system is mounted via 9P,
      then re-exported via samba to windows clients in a cluster.  Windows wants
      to store xattrs such as security.NTACL.  This works when ext4 directly
      backs samba, but not when 9P is inserted.  This use case is documented here:
         http://code.google.com/p/diod/issues/detail?id=95Signed-off-by: NJim Garlick <garlick@llnl.gov>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      d9a73859
  12. 26 2月, 2013 1 次提交
  13. 06 1月, 2012 1 次提交
    • J
      9p: Reduce object size with CONFIG_NET_9P_DEBUG · 5d385153
      Joe Perches 提交于
      Reduce object size by deduplicating formats.
      
      Use vsprintf extension %pV.
      Rename P9_DPRINTK uses to p9_debug, align arguments.
      Add function for _p9_debug and macro to add __func__.
      Add missing "\n"s to p9_debug uses.
      Remove embedded function names as p9_debug adds it.
      Remove P9_EPRINTK macro and convert use to pr_<level>.
      Add and use pr_fmt and pr_<level>.
      
      $ size fs/9p/built-in.o*
         text	   data	    bss	    dec	    hex	filename
        62133	    984	  16000	  79117	  1350d	fs/9p/built-in.o.new
        67342	    984	  16928	  85254	  14d06	fs/9p/built-in.o.old
      $ size net/9p/built-in.o*
         text	   data	    bss	    dec	    hex	filename
        88792	   4148	  22024	 114964	  1c114	net/9p/built-in.o.new
        94072	   4148	  23232	 121452	  1da6c	net/9p/built-in.o.old
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      5d385153
  14. 11 1月, 2011 1 次提交
  15. 28 10月, 2010 2 次提交
  16. 03 8月, 2010 2 次提交