Re: mdadm/mdmon Name vs argv[0]

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

 



On 05/02/2017 04:19 PM, Jes Sorensen wrote:
Hi Pawel,

In the below commit you changed the handling of how mdadm/mdmon handles printing the name of the running process.

However, if people for some reason decided to change the names of mdadm/mdmon this would no longer be correct.

Do you remember if there is any reason why you didn't use argv[0] for this?

commit d56dd607ba433d9334f0fb4114fe081742ae4361
Author: Pawel Baldysiak <pawel.baldysiak@xxxxxxxxx>
Date:   Wed Feb 11 22:25:03 2015 +0100

     Change way of printing name of a process

Cheers,
Jes
Hi Jes,

We did not consider this option once we were implementing the change.
Also, I was not considering that someone would like to change the mdadm/mdmon names :)

I see one potential issue with usage of argv[0]:
If you look into mdmon's code (start of the main()),
you will see that first char is replaced with '@'.

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



[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