tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rwd0a and label sector marked read-only wrote:

> - is such behaviour expected when manipulating the char device directly?

All partitions (except RAW_PART) are defined in the disklabel,
so it might be problematic to define behavior when
the disklabel is updated via a partition which is being changed. 

> - why EROFS and not EPERM?

Because it requires a proper procedure (DIOCWLABEL), not privilege?

> - why is it possible to override the aforementioned sector when using 
> label d (under x86) directly, and not when using other labels? Should 
> the checks be any different?

Because the RAW_PART is always vaild even if there is no valid disklabel?
Izumi Tsutsui

Home | Main Index | Thread Index | Old Index