lkml.org 
[lkml]   [2005]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Weirdness of "mount -o remount,rw" with write-protected floppy
    On 10/27/05, Jon Masters <jonmasters@gmail.com> wrote:
    > On 10/27/05, Evgeny Stambulchik <Evgeny.Stambulchik@weizmann.ac.il> wrote:
    >
    > > # mount /dev/fd0 /mnt/floppy/
    > > mount: block device /dev/fd0 is write-protected, mounting read-only
    > > # mount -o remount,rw /mnt/floppy
    > > # echo $?
    > > 0
    >
    > Oops. That looks like a bug.

    Callchain is:

    sys_mount -> do_mount -> do_remount

    and that then calls:

    do_remount_sb

    which does:

    if (!(flags & MS_RDONLY) && bdev_read_only(sb->s_bdev))
    return -EACCES;

    So I'm missing something. I'll have another look, it's failing somewhere else.

    Jon.
    -
    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-10-29 14:02    [W:0.040 / U:64.952 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site