Re: reiser4 kernel compilation problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/25/2013 04:03 PM, dimas wrote:
Fsck doesn't report if compression has been enabled.
debugfs.reiser4 should be patched to show value of "create" (reg40 or
ccreg40),
"compress" (lzo1, or gzip1), etc.
oh, didn't know, thanks! i thought that "format40" is just equal to "reg40".

Not really.
"format4x" is per-volume thing, whereas "reg4x" is per-directory thing.
BTW, "ccreg40" is bad name: I insisted on "reg41", but reiser4progs
authors were too lazy to change things...



thus, there is currently no way to determine fs format (reg40 or ccreg40)

Volume format (only "format40" for now) is determined at mkfs time.
"Create" value (only reg40 and ccreg40 for now) of root directory is
determined at mkfs time and inherited by children.

You can change "create" value of any directory (including the root one)
at any time (e.g. with ioctl(2) ), so that new children will inherit
that new value (not implemented).


  and
compression type (if any)? maybe, such information in fsck would be nice?))

Actually, fsck is to check consistency.#0 SD (stat40): [29:1(SD):0:2a:0] OFF=28, LEN=94, flags=0x0
exts:           3
mask:           0x13
plugin:         sdext_lw
offset:         2
len:            14
mode:           drwxr-xr-x
nlink:          4
size:           3
plugin:         sdext_unix
offset:         16
len:            28
uid:            0
gid:            0
atime:          Mon Nov  4 21:22:24 2013
mtime:          Mon Nov  4 21:13:07 2013
ctime:          Mon Nov  4 21:13:07 2013
rdev:           150
bytes:          150
plugin:         sdext_plugin_set
offset:         44
len:            50
Pset count:     12
        permission : id = 0
        formatting : id = 2 (smart)
              hash : id = 1 (r5_hash)
         fibration : id = 2 (ext_1_fibre)
          statdata : id = 0 (stat40)
           diritem : id = 2 (cde40)
            crypto : id = 0
            digest : id = 0
          compress : id = 0 (lzo1)
      compressMode : id = 4 (conv)
           cluster : id = 0 (64K)
            create : id = 0 (reg40)

There is a special tool for such needs (debugfs.reiser4).
With the option -t it dumps the whole tree. You should
find any stat-data item, and take a look at the "create"
parameter.

In the following example compression has been disabled:

#0  SD (stat40): [29:1(SD):0:2a:0] OFF=28, LEN=94, flags=0x0
exts:           3
mask:           0x13
plugin:         sdext_lw
offset:         2
len:            14
mode:           drwxr-xr-x
nlink:          4
size:           3
plugin:         sdext_unix
offset:         16
len:            28
uid:            0
gid:            0
atime:          Mon Nov  4 21:22:24 2013
mtime:          Mon Nov  4 21:13:07 2013
ctime:          Mon Nov  4 21:13:07 2013
rdev:           150
bytes:          150
plugin:         sdext_plugin_set
offset:         44
len:            50
Pset count:     12
        permission : id = 0
        formatting : id = 2 (smart)
              hash : id = 1 (r5_hash)
         fibration : id = 2 (ext_1_fibre)
          statdata : id = 0 (stat40)
           diritem : id = 2 (cde40)
            crypto : id = 0
            digest : id = 0
          compress : id = 0 (lzo1)
      compressMode : id = 4 (conv)
           cluster : id = 0 (64K)
            create : id = 0 (reg40)
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux