File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1664,6 +1664,22 @@ class CephFSShell(Cmd):
16641664 except libcephfs .Error as e :
16651665 set_exit_code_msg (msg = e )
16661666
1667+ removexattr_parser = argparse .ArgumentParser (
1668+ description = 'Remove extended attribute set for a file' )
1669+ removexattr_parser .add_argument ('path' , type = str , action = path_to_bytes ,
1670+ help = 'Name of the file' )
1671+ removexattr_parser .add_argument ('name' , type = str , help = 'Extended attribute name' )
1672+
1673+ @with_argparser (removexattr_parser )
1674+ def do_removexattr (self , args ):
1675+ """
1676+ Remove extended attribute for a file
1677+ """
1678+ try :
1679+ poutput ('{}' .format (cephfs .removexattr (args .path , to_bytes (args .name ))))
1680+ except libcephfs .Error as e :
1681+ set_exit_code_msg (msg = e )
1682+
16671683
16681684#######################################################
16691685#
You can’t perform that action at this time.
0 commit comments