On 13/01/2014 21:48, Gerald Matzka wrote: > Hi, > > I noticed a strange behaviour of the block command of the ubox/block-mount > package. > > # block info > /dev/sda1: UUID="f1937642-358f-4b3d-9e6f-54fa904a0708" LABEL="BOOT" > VERSION="1.0" TYPE="ext2" > /dev/sda2: UUID="f3eded9b-8500-4a08-99f4-1697f7cc5ee1" LABEL="ROOT" > VERSION="1.0" TYPE="ext2" > /dev/sdc1: UUID="7f646505-dc3b-471d-9ac3-f9b365ecf30e" LABEL="DISK1" > NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4" > /dev/sdc1: UUID="7f646505-dc3b-471d-9ac3-f9b365ecf30e" LABEL="DISK1" > NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4" > > The sdc1 partition is listed twice!? Digging into the source code of > ubox/block.c showed: > > static void cache_load(int mtd) > { > if (mtd) > _cache_load("/dev/mtdblock*"); > _cache_load("/dev/mmcblk*"); > _cache_load("/dev/sd*"); > _cache_load("/dev/sdc*"); > _cache_load("/dev/hd*"); > _cache_load("/dev/md*"); > _cache_load("/dev/mapper/*"); > } > > Any purpose for cache_load "/dev/sd*" as well as "/dev/sdc*" or just a > copy-paste issue?! >
Hi looks like copy pasta ... i'll fix it when i wake up in the morning John _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel