Shrink an Empty Reiser4 partition

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

 



Hello,

Question:
What  would be the steps required to 'Shrink an Empty Reiser4 partition' ?
Is their some code to do this or could be used/adapted to  'Shrink an
Empty Reiser4 partition' ?

Thanks

--Glenn


# fdisk -l

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009a8dd


   Device Boot      Start         End      Blocks   Id  System
/dev/sdb2      3221225472  3907028991   342901760   83  Linux

b2      3221225472  3907028991   342901760   83  Linux
orac:~ # debugfs.reiser4 /dev/sdb2 
debugfs.reiser4 1.1.0
Format release: 4.0.1
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING. 

Master super block (16):
magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           139d06a8-1886-44a0-a058-8f9da1ab88cf
label:          <none>

Format super block (17):
plugin:         format40
description:    Disk-format plugin.
version:        1                                                         
       
magic:          ReIsEr40FoRmAt                                            
       
mkfs id:        0x14b9244f                                                
       
flushes:        18446744073709551615
blocks:         85725440
free blocks:    85722778
root block:     31
tail policy:    0x2 (smart)
next oid:       0x1961e
file count:     1
tree height:    3
key policy:     LARGE

FS status block (21):
FS marked consistent

# debugfs.reiser4 /dev/sdb2  --print-tree
debugfs.reiser4 1.1.0
Format release: 4.0.1
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING. 

NODE (31) LEVEL=3 ITEMS=1 SPACE=4022 MKFS ID=0x14b9244f
FLUSH=0xffffffffffffffff
#0  NPTR (nodeptr40): [29:1(SD):0:2a:0] OFF=28, LEN=8, flags=0x0 [32]
==============================================================================
NODE (32) LEVEL=2 ITEMS=1 SPACE=4022 MKFS ID=0x14b9244f FLUSH=0x0
#0  NPTR (nodeptr40): [29:1(SD):0:2a:0] OFF=28, LEN=8, flags=0x0 [33]
==============================================================================
NODE (33) LEVEL=1 ITEMS=2 SPACE=3796 MKFS ID=0x14b9244f FLUSH=0x0
#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:          3
size:           2
plugin:         sdext_unix
offset:         16
len:            28
uid:            0
gid:            0
atime:          Tue Apr 11 18:24:21 2017
mtime:          Tue Apr 11 21:57:42 2017
ctime:          Tue Apr 11 21:57:42 2017
rdev:           100
bytes:          100
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 = 4 (ccreg40)
------------------------------------------------------------------------------
#1  DIRITEM (cde40): [2a:0(NAME):0:0:0] OFF=122, LEN=102, flags=0x0
NR(2)  NAME                                  OFFSET HASH                  
          SDKEY             
  0 .                                         54
0000000000000000:0000000000000000 0000291:000002a
  1 ..                                        78
0000000000000000:0000000000000000 0000291:000002a
==============================================================================

# mount /dev/sdb2 /media/disk2

# ll /media/disk2
total 0

# umount /dev/sdb2

# debugfs.reiser4 -P /dev/sdb2  | gzip -9 > /tmp/r4metadata-sdb2.gz
debugfs.reiser4 1.1.0
Format release: 4.0.1
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING. 

# ll /tmp/r4metadata-sdb2.gz
-rw-r--r-- 1 root users 14916 Apr 23 19:14 /tmp/r4metadata-sdb2.gz

Attachment: r4metadata-sdb2.gz
Description: GNU Zip compressed data


[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