Re: Strange /dev/loop behavior

Eric W. Biederman (ebiederm@xmission.com)
15 Sep 2001 13:10:24 -0600


Byron Stanoszek <gandalf@winds.org> writes:

> Is there any known method of copying/compressing the loopback-mounted file-
> system that always guarantees consistency after a sync, without requiring the
> fs to be unmounted first?

Mounting read-only and then syncing might do it. Going directly to
the block device on 2.4.x is not supported when the filesystem is
mounted. This is because the page cache is not coherent with the
block cache, and there are now plans to make this the case. In
general this won't work anyway because some other program might
be modifying your fs while you read the block device.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/