linux下setfattr命令出错:setfattr: file0: Operation not supported
来源:互联网 发布:孚盟软件知乎 编辑:程序博客网 时间:2024/05/18 02:13
1.执行命令时出错:
运行环境为linux,文件所在的文件系统为ext4(可通过mount命令查看)
#setfattr -n test-xattr -v "test" file0
setfattr: file0: Operation not supported (提示信息)
2.查看man setfattr和man 5 attr
其中的man 5 attr部分内容为:
。。。。。。。。。。。
EXTENDED ATTRIBUTE NAMESPACES
Attribute names are zero-terminated strings. The attribute name is always specified in the fully qualified namespace.attribute form, eg.
user.mime_type, trusted.md5sum, system.posix_acl_access, or security.selinux.
The namespace mechanism is used to define different classes of extended attributes. These different classes exist for several reasons, e.g. the
permissions and capabilities required for manipulating extended attributes of one namespace may differ to another.
Currently the security, system, trusted, and user extended attribute classes are defined as described below. Additional classes may be added in
the future.
。。。。。。。。。。。。。
所以可以知道setfattr -n指定的扩展属性名字要符合一定的要求。
3.按上面的名字要求再次执行命令
#setfattr -n trusted.test-attr -v "test" file0
(可以执行成功了,)
并且可以通过命令查看
#getfattr -d -m "" file0
输出结果如下:
# file: file0
trusted.test-xattr="test"
- linux下setfattr命令出错:setfattr: file0: Operation not supported
- 软连接建立出错 Operation not supported
- 文件系统扩展属性操作(setfattr, getfattr)
- 文件系统扩展属性操作(setfattr, getfattr)
- setfacl提示 Operation not supported
- ln: creating symbolic link XX : Operation not supported(Linux下对windows文件创建软链接失败)
- hadoop搭建之linux下su命令报错 cannot set groups Operation not operation not permitted !
- linux下解压命令执行出错 Not found in archive
- 【linux】linux下su命令su cannot set groups Operation not permitted错误
- Operation not supported. Unknown error: 0x8973190e
- 解决 cmake_symlink_library: System Error: Operation not supported
- creating symbolic link XXXXXX : Operation not supported
- linux下su命令su cannot set groups Operation not permitted错误
- Linux出现cp: preserving permissions for `filename': Operation not supported错误及解决办法
- 编译Linux内核错误:ln: creating symbolic link `include/asm': Operation not supported
- linux下root用户删除文件提示:Operation not permitted
- 【已解决】ln: creating symbolic link XXXXXX : Operation not supported
- Creating symbolic link 'bin/libtalloc.so.2': Operation not supported
- JavaScript cookie js cookie设置
- 用trace32实时查看屏幕刷新情况
- hive中partition如何使用(转载)
- C语言中size_t的陷阱
- BREW PEK步骤
- linux下setfattr命令出错:setfattr: file0: Operation not supported
- linux和发展与应用
- 安装zeromq-2.2.0
- ASP.NET AJAX客户端生命周期分析
- Android开发ListView中包含CheckBox(点击item选中CheckBox),并设置其全选反选等功能
- 在命令提示符窗口下访问sql server数据库
- 网站性能优化:JS篇
- hdu2586[lca离线tarjon算法][递归与非递归]
- Window XP驱动开发(二十四) 电源管理