Re: Minor mdadm fixes

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

 



On 15:49, Mr. James W. Laferriere wrote:
> 	Hello Doug ,
> 
> On Mon, 11 Jan 2010, Doug Ledford wrote:
> >These are a number of minor fixes we carry in our mdadm at the moment.  
> >Would
> >prefer not to carry them ourselves ;-)
> >
> >Neil, any clue when you think might release mdadm-3.1.2?
> 	Would you please annotate the git diffs you sent out ?
> 	For one I am very confused about the change of
> 
> -       sprintf(path, "/var/run/mdadm/%s.pid", devname);
> +       sprintf(path, "/dev/.mdadm/%s.pid", devname);
> 
> 	why ?  For one .
> 
> 	None of the other patches has a annotation either .  While if one is 
> 	a kernel coding guru they are probably very readable .  I am not but would 
> like to know what the intention is for the change(s) .

The annotation is the subject line :)

Before switching root it is sometimes desirable to mount --bind (or
--move) the current /dev into the new root as the programs started
from the new root will need the device nodes. For example the init
scripts that run from the intramfs move /dev after it has been mounted
as a ramfs and populated.

I believe (Doug, please correct me if the following is wrong) the
advantage of storing mdmon's pid files in /dev is that in /dev they
remain visible after the switch to the new root. That's the "handoff
after pivotroot" in the subject.

Regards
Andre
-- 
The only person who always got his work done by Friday was Robinson Crusoe

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux