Wednesday 29 Feb 2012

Wednesday 29 Feb 2012

FRBR 投稿

Timeline FRBR catalog 細節操作描述

舉例 X2 release 項目

xml 描述

三月底!

NILFS http://www.nilfs.org/

sudo apt-get install nilfs-tools [sudo] password for thomas: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: nilfs-tools 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded. Need to get 164 kB of archives. After this operation, 441 kB of additional disk space will be used. Get:1 http://opensource.nchc.org.tw/debian/ sid/main nilfs-tools i386 2.1.0-1 [164 kB] Fetched 164 kB in 0s (1,900 kB/s) Selecting previously unselected package nilfs-tools. (Reading database ... 130168 files and directories currently installed.) Unpacking nilfs-tools (from .../nilfs-tools_2.1.0-1_i386.deb) ... Processing triggers for man-db ... Setting up nilfs-tools (2.1.0-1) ...

CONFIG_NILFS2_FS=m

dd if=/dev/zero of=nilfs-part bs=1M count=512 512+0 records in 512+0 records out 536870912 bytes (537 MB) copied, 3.57575 s, 150 MB/s thomas@x:\~/work_house/NILFS\$ sudo losetup /dev/loop0 nilfs-part [sudo] password for thomas: thomas@x:\~/work_house/NILFS\$ sudo mkfs.nilfs2 /dev/loop0 mkfs.nilfs2 (nilfs-utils 2.1.0) Start writing file system initial data to the device Blocksize:4096 Device:/dev/loop0 Device Size:536870912 File system initialization succeeded !!

mount /dev/loop0 nilfs-pt/ mount.nilfs2: cannot modify /etc/mtab. Please remount the partition with -f option after making /etc/mtab writable. nilfs_cleanerd not started

/dev/loop0 on /home/thomas/work_house/NILFS/nilfs-pt type nilfs2 (rw,relatime)

lscp CNO DATE TIME MODE FLG NBLKINC ICNT 1 2012-02-29 15:51:39 cp - 11 2

copy some file mkcp -s mkcp chcp .... lscp lscp CNO DATE TIME MODE FLG NBLKINC ICNT 1 2012-02-29 15:51:39 cp - 11 2 2 2012-02-29 15:57:26 ss - 819 157 4 2012-02-29 16:00:49 cp - 1891 165 5 2012-02-29 16:04:27 ss - 19 162 6 2012-02-29 16:04:33 cp - 51 29 7 2012-02-29 16:04:38 cp - 24 10

chcp ss 7

mount -t nilfs2 -r -o cp75 /dev/loop0 nilfs-pt3

/dev/loop0 on /home/thomas/work_house/NILFS/nilfs-pt type nilfs2 (rw,relatime) /dev/loop0 on /home/thomas/work_house/NILFS/nilfs-pt3 type nilfs2 (ro,relatime,cp=7)

GC a daemon for checkpoint root@x:/home/thomas/work_house/NILFS# lscp CNO DATE TIME MODE FLG NBLKINC ICNT 1 2012-02-29 15:51:39 cp - 11 2 2 2012-02-29 15:57:26 ss - 819 157 4 2012-02-29 16:00:49 cp - 1891 165 5 2012-02-29 16:04:27 ss - 19 162 6 2012-02-29 16:04:33 cp - 51 29 7 2012-02-29 16:04:38 cp - 24 10 9 2012-02-29 16:22:49 cp - 21 12 root@x:/home/thomas/work_house/NILFS# date Wed Feb 29 16:22:58 CST 2012

dd date to nilfs /dev/loop0 516092 442364 8192 99% /home/thomas/work_house/NILFS/nilfs-pt

can't create file until remove cp rmcp 1 rmcp: 2: cannot remove snapshot

To delete snapshot(s), change them into checkpoints with chcp command before removal.

rmcp 7.. rmcp ..5 rmcp 1..3

old convert log: ./29/tag%3E%20calendar%202012%2002)

Comments