The attached patch changes the behaviour of geom_vol_ffs so that:
- It works even if the file system doesn't fill the partition
completely (it only checks for file system > mediasize).
- It does not attach to providers it doesn't know how to handle.
- It does not attach to sunlabel providers
[Poul-Henning Kamp, 2003-06-07]
| This does not work for FFS filesystems stored in apple or sun partitions,
| but theese do on the other hand, not have the magic 'c' problem.
(I know it wouldn't work for FFS filesystems in non-BSD partitions,
which must be supported. It was not my suggest
In message <[EMAIL PROTECTED]>, Per Kristian
Hove writes:
>plan to growfs it later, and your fstab contains /dev/vol entries) the
>obvious thing would be to check the "parent" GEOM and check that the
>partition we're tasting is of type FS_BSDFFS. That would eliminate the
>"c"-partition problem.
On Fri, 6 Jun 2003, Per Kristian Hove wrote:
> I've nailed it down to this: geom_vol_ffs assumes that a file system
> is able to fill the partition completely. That's not a valid
> assumption, since the file system size is a multiple of the file
> system block size (in my case 16k bytes = 32 block
[Gordon Tetlow, 2003-06-06]
| Thanks for doing this analysis. I've run into the same thing here at
| work but I just haven't had any time to debug it. I'll see if I can
| work something up that'll address this problem.
Given that it should be OK to have a file system smaller than the
partition
On Fri, Jun 06, 2003 at 07:38:36PM +0200, Per Kristian Hove wrote:
> I've nailed it down to this: geom_vol_ffs assumes that a file system
> is able to fill the partition completely. That's not a valid
> assumption, since the file system size is a multiple of the file
> system block size (in my case
I've nailed it down to this: geom_vol_ffs assumes that a file system
is able to fill the partition completely. That's not a valid
assumption, since the file system size is a multiple of the file
system block size (in my case 16k bytes = 32 blocks), and the
partition size is/should be a multiple of
I have problems getting geom_vol_ffs to recognise one of my file
systems. I set sysctl kern.geom.debugflags=1, and then label ad0s3a
and ad0s3e:
# cd /dev/vol
# ls -l
# tunefs -L 'curroot' /dev/ad0s3a
# ls -l
total 0
crw-r- 1 root operator4, 42 Jun 4 13:41 curroot