[lkml]   [2001]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Something broken in sys_swapon

On Sat, 3 Nov 2001, Simon Kirby wrote:

> kdev_t dev = swap_inode->i_rdev;
> struct block_device_operations *bdops;
> p->swap_device = dev;
> set_blocksize(dev, PAGE_SIZE);
> I don't know much at all about the inode structure, but doesn't this set
> the block size of the originating filesystem containing the inode rather
> than the block device that inode happens to be pointing to? That would

man 2 stat

i_rdev is equivalent of st_rdev, i_dev - of st_dev.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.072 / U:4.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site