lkml.org 
[lkml]   [2004]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: set blksize of block device
    Date
    > >> I am learning block device drivers and have a newbie question. Given 
    > >> a block device, is there anyway that I could set its block size? For
    > >> example, I want to write a block device driver that will work on an
    > >> existing block device. In this driver, I want block size smaller.
    > >> (The idea looks confusing but I could explain if anybody is
    > >> interested :- ) However, typically the block size is 1KB, now I
    > >> want to set it to 512 or 256. Can I do it?

    256 - no way if hardware can do only 512-byte writes.

    You need read-modify-write for this.
    --
    vda

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

    \
     
     \ /
      Last update: 2005-03-22 14:07    [W:0.022 / U:210.416 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site