writing "- - -" to /sys/class/scsi_host/...

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

 



Hello,

I was trying to find out the meaning of "- - -" in the magic command to scan a SCSI host. After finding the code in the sources (after extensive searching), I'm wondering (2.6.16.60, scsi_sysfs.c):

static int check_set(unsigned int *val, char *src)
{
        char *last;

        if (strncmp(src, "-", 20) == 0) {
                *val = SCAN_WILD_CARD;
        } else {
[...]

If it's still there in the current sources, does that "20" do anything useful? The comparison should end at the second character anyway. "-" is always zero-terminated. Did I miss something?

Regards,
Ulrich
P.S. Please CC me if your reply should reach me, I'm not subscribed in the list!

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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux