Re: [announce] swap mini-howto

From: Jeff Garzik (jgarzik@pobox.com)
Date: Sat Nov 02 2002 - 18:31:25 EST


Andrew Morton wrote:

>That got stamped out. swapon will fail if the file isn't fully
>instantiated on disk:
>
>
>static int setup_swap_extents(struct swap_info_struct *sis)
>{
> ...
> block = bmap(inode, probe_block + block_in_page);
> if (block == 0)
> goto bad_bmap;
> ...
>
>bad_bmap:
> printk(KERN_ERR "swapon: swapfile has holes\n");
> ret = -EINVAL;
>}
>
>

I am in further awe of you.

    Jeff

-
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/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:27 EST