Linux filesystem development
 help / color / mirror / Atom feed
From: Pat LaVarre <p.lavarre@ieee.org>
To: linux-fsdevel@vger.kernel.org
Subject: Re: vfs whitebox test
Date: 05 Dec 2003 11:12:56 -0700	[thread overview]
Message-ID: <1070647976.12411.310.camel@patibmrh9> (raw)
In-Reply-To: <1070565286.5510.0.camel@patibmrh9>

Kindly offline I'm reminded the man mount example:

mount /tmp/fdimage /mnt -t msdos -o loop=/dev/loop3,blocksize=1024

is a hint that we have some control over virtual block size.

Not yet enough.

Despite mkudffs -b $bs (syntax from fs/udf/super.c) and mount -o
loop,bs=$bs (syntax from man mount) still we get 512 from `sudo blockdev
--getss` e.g.

$ udfbs 0 10 sudo blockdev --getss /dev/loop0
...
+ sudo blockdev --getss /dev/loop0
512
+ sudo umount /mnt/loop0
$

Pat LaVarre

--- /dev/null	2003-01-30 03:24:37.000000000 -0700
+++ bin/udfbs	2003-12-05 11:07:13.199344360 -0700
@@ -0,0 +1,21 @@
+#!/bin/bash -x
+
+mkbs='-b 2048'
+mobs=',bs=2048'
+
+cmd="dd if=/dev/zero of=dd.bin bs=1M seek=$1 count=$2"
+echo "$cmd 2>/dev/null"
+$cmd 2>/dev/null
+shift 2
+
+sudo losetup /dev/loop0 dd.bin
+sudo mkudffs $mkbs /dev/loop0 >/dev/null
+sudo losetup -d /dev/loop0
+sudo mount -t udf dd.bin /mnt/loop0 -o loop$mobs
+sudo chown `id -g`:`id -u` /mnt/loop0/.
+
+export PS1="udfbs \$ "
+ls -l `which sh`
+"$@"
+
+sudo umount /mnt/loop0



  reply	other threads:[~2003-12-05 18:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04 19:14 vfs whitebox test Pat LaVarre
2003-12-05 18:12 ` Pat LaVarre [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-24 23:29 Pat LaVarre
2003-11-25 15:46 ` Pat LaVarre
2003-11-25 17:04   ` Pat LaVarre
2003-11-25 17:06     ` Randy.Dunlap
2003-11-25 17:12     ` Pat LaVarre
2003-11-25 19:59       ` Pat LaVarre
2003-11-25 17:09   ` Randy.Dunlap
2003-11-25 17:33     ` Pat LaVarre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1070647976.12411.310.camel@patibmrh9 \
    --to=p.lavarre@ieee.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox