Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: chattr -i


  • Subject: Re: lug-bg: chattr -i
  • From: George Danchev <danchev@xxxxxxxxx>
  • Date: Sat, 20 Sep 2003 20:03:12 +0300

On Saturday 20 September 2003 19:26, Stanislav Lechev [AngelFire] wrote:
>  CHATTR(1)                                               CHATTR(1)
>
>  NAME
>         chattr - change file attributes on a Linux second extended file
> system
>
> "second extended file system"
>
> otgoworil si si predi da popitash ...

Po princip DA prav si, ama ot izvestno vreme mozhe i da e NE si ;-) 

debian:/home/anonymous# df -T |grep home
/dev/hda2 reiserfs     2618508   2564272     54236  98% /home
debian:/home/anonymous# cat /proc/fs/reiserfs/version
ReiserFS version 3.6.25 [built into kernel]

debian:/home/anonymous# lsattr FILE
--S-i----------t- FILE
debian:/home/anonymous# chattr -i FILE
debian:/home/anonymous# lsattr FILE
--S------------t- FILE

edna malka tajna e 4e chattr (extended attributes) za FS-a ne se iziskva ot 
POSIX i za tva ne si4ki unix-(like) fs'es go poddyrzhat, oba4e qvno ReiserFS 
team neiska da izostava v feature creep-a s ext2/3 i za tva taka se 
unificirat ;-)

REFERENCES:
kernel sources ofcoz. 2.4.19 vanilla:

fs/reiserfs/inode.c
fs/reiserfs/ioctl.c
include/linux/reiserfs_fs.h
(interesuva go -i, koeto e IMMUTABLE na ext2/3, ama v slu4aq i za ReiserFS;-)

#include <linux/ext2_fs.h>

/* inode flags stored in sd_attrs (nee sd_reserved) */

/* we want common flags to have the same values as in ext2,
   so chattr(1) will work without problems */
#define REISERFS_IMMUTABLE_FL EXT2_IMMUTABLE_FL
#define REISERFS_SYNC_FL      EXT2_SYNC_FL
#define REISERFS_NOATIME_FL   EXT2_NOATIME_FL
#define REISERFS_NODUMP_FL    EXT2_NODUMP_FL
#define REISERFS_SECRM_FL     EXT2_SECRM_FL
#define REISERFS_UNRM_FL      EXT2_UNRM_FL
#define REISERFS_COMPR_FL     EXT2_COMPR_FL
/* persistent flag to disable tails on per-file basic.
   Note, that is inheritable: mark directory with this and
   all new files inside will not have tails. 

   Teodore Tso allocated EXT2_NODUMP_FL (0x00008000) for this. Change
   numeric constant to ext2 macro when available. */
#define REISERFS_NOTAIL_FL    (0x00008000) /* EXT2_NOTAIL_FL */

> On Saturday 20 September 2003 16:21, Marian Popov wrote:
> > Zdraveite !
> >
> > Niakoi ima li predstava shto ne mi raboti chattr -i na Debiana.
> > Da ne mi da e zaradi reiserfs-a ?
> >
> > mashina:/etc# chattr -i resolv.conf
> > chattr: Inappropriate ioctl for device while reading flags on resolv.conf

CAVEATS:
qvno ne ba4ka s vsqka versiq na ReiserFS kernel driver-a.
Daj sega:
# cat /proc/fs/reiserfs/version
oba4e iska CONFIG_REISERFS_PROC_INFO compiled, ako go nqmash daj:
# dmesg | grep ReiserFS

Eto moq chattr idva ot:

dpkg -l |grep e2fsprogs
ii  e2fsprogs                  1.34+1.35-WIP-2003.08.21-3 The EXT2 file system 
utilities and libraries

ReiserFS version:
dmesg | grep ReiserFS ; cat /proc/fs/reiserfs/version
ReiserFS version 3.6.25
ReiserFS version 3.6.25
ReiserFS version 3.6.25 [built into kernel]

-- 
pub  4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB 

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================


  • Относно:

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.