[lkml]   [2003]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectonline resizing of devices/filesystems (2.6)

    Should genhd.h:set_capacity() find and update the i_size field of the
    inode for the device ?

    The BLKGETSIZE and BLKGETSIZE64 ioctls report the size in the devices

    case BLKGETSIZE:
    if ((bdev->bd_inode->i_size >> 9) > ~0UL)
    return -EFBIG;
    return put_ulong(arg, bdev->bd_inode->i_size >> 9);
    case BLKGETSIZE64:
    return put_u64(arg, bdev->bd_inode->i_size);

    Currently people have to close and reopen the device in order for a
    size change to take effect. This is a problem if people want to do
    online resizing of a filesystem (supported by xfs and resier).

    - Joe

    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:47    [W:0.018 / U:1.668 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site