Re: [RFC PATCH 2/3] raid: external and internal metadata support

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

 



On Fri, Feb 6, 2009 at 10:38 AM, Bill Nottingham <notting@xxxxxxxxxx> wrote:
> Dan Williams (dan.j.williams@xxxxxxxxx) said:
>> It is not just setting writable, mdmon is also there to clear the bit
>> when writes have quiesced.
>
> Let me just see if I understand this infrastructure correctly.
>
> - device is set writable
> - kernel tells userspace
...tells userspace that we want to transition the array from clean to dirty, yes

> - userspace frobs bit in superblock to say 'I want to be dirty!'
yes

> - userspace tells kernel
...yup array is dirty, start writing.

> - kernel writes bit to disk
> ... stuff happens ...
> - userspace tells kernel to unmount, or remount R/O
> - kernel tells userspace "hey, i unmounted this"
> (userspace freaks out because the filesystem the daemon is running on
>  just went away)
mdmon does not know or care if the *filesystem* is read-only.  It is
reading and writing /proc, /sys, and the raw disk devices.

> - userspace frobs bit in superblock to say 'This array is CLEAN!'
...not in this scenario no.

> - userspace tells kernel
> - kernel writes bit to disk
>
> Is that really how it's supposed to work?
You lost me at userspace freaks out, but that is the general flow.

> So, why isn't the ext* journal or filesystem unclean flag
> handled via a userspace file monitoring daemon, then?
I'm not trying to be obtuse, but because it isn't.  Put another way,
consider what extra tools the initramfs would need if we wanted to
support an ntfs-3g rootfs.

--
Dan
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux