* Error while testing (using loop device) [not found] ` <AANLkTikwTRGooDQD+Uo08MkywS+KJ8BXxqqytxbNFiqr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-07-22 19:26 ` Rodrigo E. De León Plicet [not found] ` <AANLkTin0qMJvDgs705a9Nu0hWNLCdGEXWn7q_2sXQ6yZ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Rodrigo E. De León Plicet @ 2010-07-22 19:26 UTC (permalink / raw) To: NILFS Mailing List Hi. Ubuntu 10.04 nilfs-tools 2.0.15 -------------------------------------------------------------------------------- rdl@linage:/tmp$ mkdir t rdl@linage:/tmp$ mkdir t2 rdl@linage:/tmp$ chmod 777 t t2 rdl@linage:/tmp$ dd if=/dev/zero of=test.img bs=1M seek=1000 count=1 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00422859 s, 248 MB/s rdl@linage:/tmp$ mkfs -t nilfs2 test.img mkfs.nilfs2 ver 2.0 Start writing file system initial data to the device Blocksize:4096 Device:test.img Device Size:1049624576 File system initialization succeeded !! rdl@linage:/tmp$ sudo mount -t nilfs2 -o loop /tmp/test.img /tmp/t mount.nilfs2: WARNING! - The NILFS on-disk format may change at any time. mount.nilfs2: WARNING! - Do not place critical data on a NILFS filesystem. (... time passes ...) rdl@linage:/tmp$ lscp CNO DATE TIME MODE FLG NBLKINC ICNT 1 2010-07-21 15:25:07 cp - 11 3 2 2010-07-21 15:26:47 cp - 118 4 3 2010-07-21 15:26:56 cp - 224 6 4 2010-07-21 15:27:03 cp - 23 12 5 2010-07-21 15:27:14 cp - 48 13 rdl@linage:/tmp$ sudo chcp ss 3 rdl@linage:/tmp$ lscp CNO DATE TIME MODE FLG NBLKINC ICNT 1 2010-07-21 15:25:07 cp - 11 3 2 2010-07-21 15:26:47 cp - 118 4 3 2010-07-21 15:26:56 ss - 224 6 4 2010-07-21 15:27:03 cp - 23 12 5 2010-07-21 15:27:14 cp - 48 13 6 2010-07-21 15:27:33 cp - 14 14 rdl@linage:/tmp$ sudo mount -t nilfs2 -o ro,cp=2,loop /tmp/test.img /tmp/t2 mount.nilfs2: Error while mounting /dev/loop1 on /tmp/t2: Read-only file system rdl@linage:/tmp$ sudo mount -t nilfs2 -r -o cp=2,loop /tmp/test.img /tmp/t2 mount.nilfs2: Error while mounting /dev/loop1 on /tmp/t2: Read-only file system -------------------------------------------------------------------------------- Am I missing something? Regards. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <AANLkTin0qMJvDgs705a9Nu0hWNLCdGEXWn7q_2sXQ6yZ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Error while testing (using loop device) [not found] ` <AANLkTin0qMJvDgs705a9Nu0hWNLCdGEXWn7q_2sXQ6yZ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-07-23 2:31 ` Ryusuke Konishi [not found] ` <20100723.113125.163336402.ryusuke-sG5X7nlA6pw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Ryusuke Konishi @ 2010-07-23 2:31 UTC (permalink / raw) To: rdeleonp-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA Hi, On Thu, 22 Jul 2010 14:26:38 -0500, Rodrigo_E._De_León_Plicet wrote: > Hi. > > Ubuntu 10.04 > nilfs-tools 2.0.15 > > -------------------------------------------------------------------------------- > > rdl@linage:/tmp$ mkdir t > > rdl@linage:/tmp$ mkdir t2 > > rdl@linage:/tmp$ chmod 777 t t2 > > rdl@linage:/tmp$ dd if=/dev/zero of=test.img bs=1M seek=1000 count=1 > 1+0 records in > 1+0 records out > 1048576 bytes (1.0 MB) copied, 0.00422859 s, 248 MB/s > > rdl@linage:/tmp$ mkfs -t nilfs2 test.img > mkfs.nilfs2 ver 2.0 > Start writing file system initial data to the device > Blocksize:4096 Device:test.img Device Size:1049624576 > File system initialization succeeded !! > > rdl@linage:/tmp$ sudo mount -t nilfs2 -o loop /tmp/test.img /tmp/t > mount.nilfs2: WARNING! - The NILFS on-disk format may change at any time. > mount.nilfs2: WARNING! - Do not place critical data on a NILFS filesystem. > > (... time passes ...) > > rdl@linage:/tmp$ lscp > CNO DATE TIME MODE FLG NBLKINC ICNT > 1 2010-07-21 15:25:07 cp - 11 3 > 2 2010-07-21 15:26:47 cp - 118 4 > 3 2010-07-21 15:26:56 cp - 224 6 > 4 2010-07-21 15:27:03 cp - 23 12 > 5 2010-07-21 15:27:14 cp - 48 13 > > rdl@linage:/tmp$ sudo chcp ss 3 > > rdl@linage:/tmp$ lscp > CNO DATE TIME MODE FLG NBLKINC ICNT > 1 2010-07-21 15:25:07 cp - 11 3 > 2 2010-07-21 15:26:47 cp - 118 4 > 3 2010-07-21 15:26:56 ss - 224 6 > 4 2010-07-21 15:27:03 cp - 23 12 > 5 2010-07-21 15:27:14 cp - 48 13 > 6 2010-07-21 15:27:33 cp - 14 14 > > rdl@linage:/tmp$ sudo mount -t nilfs2 -o ro,cp=2,loop /tmp/test.img /tmp/t2 > mount.nilfs2: Error while mounting /dev/loop1 on /tmp/t2: Read-only file system > > rdl@linage:/tmp$ sudo mount -t nilfs2 -r -o cp=2,loop /tmp/test.img /tmp/t2 > mount.nilfs2: Error while mounting /dev/loop1 on /tmp/t2: Read-only file system How about this? $ sudo mount -t nilfs2 -o ro,cp=3,loop=/dev/loop0 /tmp/test.img /tmp/t2 or $ sudo mount -t nilfs2 -r -o cp=3,loop=/dev/loop0 /tmp/test.img /tmp/t2 ... $ sudo umount /tmp/t2 Note that you have to manually detach the device like "losetup -d /dev/loop0" if you once failed to mount it. This is because the loop device is handled by the common "mount" program not by "mount.nilfs2". Regards, Ryusuke Konishi -- To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20100723.113125.163336402.ryusuke-sG5X7nlA6pw@public.gmane.org>]
* Re: Error while testing (using loop device) [not found] ` <20100723.113125.163336402.ryusuke-sG5X7nlA6pw@public.gmane.org> @ 2010-07-23 15:47 ` Rodrigo E. De León Plicet [not found] ` <AANLkTikY4joAzVe-3BSpX9KNSmFPr8cXqpJ_0pJ+rX0P-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Rodrigo E. De León Plicet @ 2010-07-23 15:47 UTC (permalink / raw) To: Ryusuke Konishi; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA On Thu, Jul 22, 2010 at 9:31 PM, Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org> wrote: > How about this? > > $ sudo mount -t nilfs2 -o ro,cp=3,loop=/dev/loop0 /tmp/test.img /tmp/t2 > > or > > $ sudo mount -t nilfs2 -r -o cp=3,loop=/dev/loop0 /tmp/test.img /tmp/t2 > ... > $ sudo umount /tmp/t2 Hi. Thanks for the reply. rdl@linage:/tmp$ lscp CNO DATE TIME MODE FLG NBLKINC ICNT 1 2010-07-23 10:36:35 cp - 11 3 2 2010-07-23 10:37:22 cp - 8 3 3 2010-07-23 10:38:13 ss - 615 4 4 2010-07-23 10:38:58 cp - 77 5 5 2010-07-23 10:39:05 cp - 21 10 6 2010-07-23 10:39:12 cp - 26 7 7 2010-07-23 10:39:43 cp i 8 7 rdl@linage:/tmp$ ls -lad t* drwxrwxrwx 3 root root 4096 2010-07-23 10:39 t drwxrwxrwx 2 rdl rdl 6 2010-07-23 10:36 t2 -rw-r--r-- 1 rdl rdl 1049624576 2010-07-23 10:36 test.img rdl@linage:/tmp$ mount|grep loop /dev/loop0 on /tmp/t type nilfs2 (rw,gcpid=2980) rdl@linage:/tmp$ sudo mount -t nilfs2 -o ro,cp=3,loop=/dev/loop1 /tmp/test.img /tmp/t2 mount.nilfs2: Error while mounting /dev/loop1 on /tmp/t2: Read-only file system :( -- To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <AANLkTikY4joAzVe-3BSpX9KNSmFPr8cXqpJ_0pJ+rX0P-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Error while testing (using loop device) [not found] ` <AANLkTikY4joAzVe-3BSpX9KNSmFPr8cXqpJ_0pJ+rX0P-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-07-23 16:31 ` Ryusuke Konishi 0 siblings, 0 replies; 4+ messages in thread From: Ryusuke Konishi @ 2010-07-23 16:31 UTC (permalink / raw) To: rdeleonp-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA Hi, On Fri, 23 Jul 2010 10:47:38 -0500, Rodrigo_E._De_León_Plicet wrote: > On Thu, Jul 22, 2010 at 9:31 PM, Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org> wrote: > > How about this? > > > > $ sudo mount -t nilfs2 -o ro,cp=3,loop=/dev/loop0 /tmp/test.img /tmp/t2 > > > > or > > > > $ sudo mount -t nilfs2 -r -o cp=3,loop=/dev/loop0 /tmp/test.img /tmp/t2 > > ... > > $ sudo umount /tmp/t2 > > Hi. Thanks for the reply. > > rdl@linage:/tmp$ lscp > CNO DATE TIME MODE FLG NBLKINC ICNT > 1 2010-07-23 10:36:35 cp - 11 3 > 2 2010-07-23 10:37:22 cp - 8 3 > 3 2010-07-23 10:38:13 ss - 615 4 > 4 2010-07-23 10:38:58 cp - 77 5 > 5 2010-07-23 10:39:05 cp - 21 10 > 6 2010-07-23 10:39:12 cp - 26 7 > 7 2010-07-23 10:39:43 cp i 8 7 > > rdl@linage:/tmp$ ls -lad t* > drwxrwxrwx 3 root root 4096 2010-07-23 10:39 t > drwxrwxrwx 2 rdl rdl 6 2010-07-23 10:36 t2 > -rw-r--r-- 1 rdl rdl 1049624576 2010-07-23 10:36 test.img > > rdl@linage:/tmp$ mount|grep loop > /dev/loop0 on /tmp/t type nilfs2 (rw,gcpid=2980) > > rdl@linage:/tmp$ sudo mount -t nilfs2 -o ro,cp=3,loop=/dev/loop1 > /tmp/test.img /tmp/t2 > mount.nilfs2: Error while mounting /dev/loop1 on /tmp/t2: Read-only file system > > :( This looks limitation of the loop devices. Try the next one for snapshot mounts. $ sudo mount -t nilfs2 -o ro,cp=3 /dev/loop0 /tmp/t2 Regards, Ryusuke Konishi -- To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-23 16:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTikwTRGooDQD+Uo08MkywS+KJ8BXxqqytxbNFiqr@mail.gmail.com>
[not found] ` <AANLkTikwTRGooDQD+Uo08MkywS+KJ8BXxqqytxbNFiqr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-22 19:26 ` Error while testing (using loop device) Rodrigo E. De León Plicet
[not found] ` <AANLkTin0qMJvDgs705a9Nu0hWNLCdGEXWn7q_2sXQ6yZ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-23 2:31 ` Ryusuke Konishi
[not found] ` <20100723.113125.163336402.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-07-23 15:47 ` Rodrigo E. De León Plicet
[not found] ` <AANLkTikY4joAzVe-3BSpX9KNSmFPr8cXqpJ_0pJ+rX0P-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-23 16:31 ` Ryusuke Konishi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox