Chinaunix首页 | 论坛 | 博客
  • 博客访问: 649568
  • 博文数量: 780
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4885
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:14
文章分类

全部博文(780)

文章存档

2008年(780)

我的朋友

分类: LINUX

2008-08-22 16:20:03


我从网上看到的关于lsattr和chattr在reiserfs上的使用的。是中文的内容,但是没有上一篇的英文内容全。在SUSELinux上面预设使用reiserfs档案系统
对于有些人会使用lsattr及chattr会出现lsattr:不希望的装置输出入控制(ioctl)Whilereadingflagson/目录名称/档案名称lsattr:不希望的装置输出入控制(ioctl)Whilereadingflagson/目录名称/档案名称如果要使用lsattr或chattr如果要使用lsattr或chattrStep1:::Step1:::要确定该filesystem有加上attrs的属性
假设要在/data的目录下使用,装置为/dev/sda6要确定该filesystem有加上attrs的属性
假设要在/data的目录下使用,装置为/dev/sda6#vi/etc/fstab#vi/etc/fstab/dev/sda6/datareiserfsacl,user_xattr,attrs12/dev/sda6/datareiserfsacl,user_xattr,attrs12#mount#mount-oremount/data#mount-oremount/data#mount确定有attrs属性挂载确定有attrs属性挂载Step2:使用使用#reiserfsck--clean-attributes/dev/sda6#reiserfsck--clean-attributes/dev/sda6输入Yes确定要清除属性输入Yes确定要清除属性Step3:Step3:测试测试#touch/data/test#touch/data/test#lsattr/data/test#lsattr/data/testNotes:[root@localhost~]#whatislsattr[root@localhost~]#whatislsattrlsattr(1)-listfileattributesonaLinuxsecondextendedfilesystemlsattr(1)-listfileattributesonaLinuxsecondextendedfilesystem[root@localhost~]#whatischattr[root@localhost~]#whatischattrchattr(1)-changefileattributesonaLinuxsecondextendedfilesystemchattr(1)-changefileattributesonaLinuxsecondextendedfilesystem 下载本文示例代码
阅读(571) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~