Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7614823ybn; Mon, 30 Sep 2019 17:14:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqztObjhbYTI4cvmxcQAmXNC1vMVpvZFUlCPuraF8WOf6b9NYokyTib1nFWy7o6O9XGCi3OZ X-Received: by 2002:a17:906:4554:: with SMTP id s20mr21839056ejq.257.1569888898695; Mon, 30 Sep 2019 17:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569888898; cv=none; d=google.com; s=arc-20160816; b=W6FX9X7j6a9WmEHufS1x3FRf5wzhxJ7BuyUOgN9pBBT1Si0TkslrEyq76eoTVH86/m T2lcT2eTPmog16h/BJtN0AiUKbCD5TvyGKFpb9oZ5qbatiK+sobCdFL22sCLivAPqLdx 4A3C76yU/B0+vGY6nIKegcPzWrWDhB/kTzyynixeQ4v3Mzdu47C2L6XsXdD5Mt7LiPWU yZlIlF+oliCBnQ5cEd1/ZLwkyTVv+1QbKK5heMem0skhNpLAYjTi1UCDuSXu6S6oJLx+ SsA91PHkGiXO0dsDHxiyPw4v0DEIikA9DxAjuiAmPUxBidexXrywiHwxtt0hgwpepnYM UXMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6wwTw3vVfH8I3EdzLkli6/NyxE/mGvGVdUXswQ4O7G4=; b=KMkjyH4sHvlNGIt1uIpJ1wAEgqtU4NwShNXghsg0pcKOHQHs519d3Q5o5w+j6hhakY IZPOTw6Q4+PJhcRWVjmVk5MSjGRQbuJRfrfonwjkU1jxbLRiqt/sfID+096Zo7KlCCxZ rJs/8Ip2nsS0fRq/OX3/gYyrRtOj2TxiX9E/Kg+1PivXa/j0CSFvPKq59S3s0Xa78rA5 qbOwoQqghUkVkPjMVY3IpAG6D/1hqakLW6ZH1QXFAgLb9cNilC1XZ+eaL1htvjdlj5Ee nNSuXqgxjpt3CLuLKzVAXlqgcnNcqAnth1PLC5awQ/P9Pa9sOKdYUCESs+VKs352DJ86 ueNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S04hC3KE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b34si8929788edb.439.2019.09.30.17.14.33; Mon, 30 Sep 2019 17:14:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S04hC3KE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732449AbfJAANg (ORCPT + 99 others); Mon, 30 Sep 2019 20:13:36 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40675 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728217AbfJAANg (ORCPT ); Mon, 30 Sep 2019 20:13:36 -0400 Received: by mail-wm1-f67.google.com with SMTP id b24so1210087wmj.5 for ; Mon, 30 Sep 2019 17:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6wwTw3vVfH8I3EdzLkli6/NyxE/mGvGVdUXswQ4O7G4=; b=S04hC3KEuIop9xDfT2QMFAt5HgTU5MVm8NayvPQvE3Vp/UNWc9zpWGKMux7nYoqTvL zhCj+2hjYqK4kv6CmffBsMGSfegqRVgZZ+3DsHEqcowQSfKV61WfP3PDqkSB7NMpIZDG 1+mcUjwDIQPNRF50vQAucG0pbmAap5BRNda4VKrql+71aoZ98Dt7M11cI49xQhgCT+hc lrfasIyDwsqeebh0n/OD6Pc1jH9rz+zbL5/TwbqdOj2UQ0sfQH8h5jtiUSgZsVGvKkU6 ZP8HD+uCKIRtsSHiRzN/tcinu8pmoq9w3OLNvp2S1mOHMhYrNIIgeQBZuVxZ20UTUvkf knuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6wwTw3vVfH8I3EdzLkli6/NyxE/mGvGVdUXswQ4O7G4=; b=SiS3ZndwZ3qUOHbLF9dxhr3J2FvWMR7TwpY5KutFFRfmy1rZzF5jlfj4RigM0Cu3Ar 2M1DKtp+h2ZSV3P+NlLZ1yyVNRsct+ufg8KV05XPVHxuUf7CJZ+kvY/pX9s9Qwn2nTSZ wWd5AJSfxPNQvFIM7E7ACbbqs8FGgYqo9xuRYDBkW7xvzxHoZOLITTU5jwltRGg+hdPZ 09+eWm1xgqxqwQMB0Cwrgl4U0mhK878ZUr+g6SnKp5yB9zHgFkTEQUIWBnY3yHoxpsZJ eCTql0YufHJ0a5+thZAIJJm3Amq45tdGE6Y3PVKaA5tGSX37Xb1OV5HOS7zCdOiWBjJP AQBQ== X-Gm-Message-State: APjAAAVKJW9UGtFeJlCSpqcZLJxsfiq059K8+UjPt3TKxbG6Kv6b/7xQ 981CL5zFyiDrmr5AtaJhaoFF251R6OeKWf7IcXZVyA== X-Received: by 2002:a7b:c403:: with SMTP id k3mr1288500wmi.89.1569888814438; Mon, 30 Sep 2019 17:13:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David F." Date: Mon, 30 Sep 2019 17:13:23 -0700 Message-ID: Subject: Re: What populates /proc/partitions ? To: Randy Dunlap , masneyb@onstation.org Cc: linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the replies. I'll see if I can figure this out. I know with the same kernel and older udev version in use that it didn't add it, but with the new udev (eudev) it does (one big difference is the new one requires and uses devtmpfs and the old one didn't). I tried making the floppy a module but it still loads on vmware player and the physical test system I'm using that doesn't have one but reports it as existing (vmware doesn't hang, just adds fd0 read errors to log, but physical system does hang while fdisk -l, mdadm --scan runs, etc..). As far as the log, debugging udev output, it's close to the same, the message log (busybox) not much in there to say what's up. I even tried the old .rules that were being used with the old udev version, but made no difference. On Mon, Sep 30, 2019 at 4:49 PM Randy Dunlap wrote: > > On 9/30/19 3:47 PM, David F. wrote: > > Hi, > > > > I want to find out why fd0 is being added to /proc/partitions and stop > > that for my build. I've searched "/proc/partitions" and "partitions", > > not finding anything that matters. > > /proc/partitions is produced on demand by causing a read of it. > That is done by these functions (pointers) in block/genhd.c: > > static const struct seq_operations partitions_op = { > .start = show_partition_start, > .next = disk_seqf_next, > .stop = disk_seqf_stop, > .show = show_partition > }; > > in particular, show_partition(). In turn, that function uses data that was > produced upon block device discovery, also in block/genhd.c. > See functions disk_get_part(), disk_part_iter_init(), disk_part_iter_next(), > disk_part_iter_exit(), __device_add_disk(), and get_gendisk(). > > > If udev is doing it, what function is it call so I can search on that? > > I don't know about that. I guess in the kernel it is about "uevents". > E.g., in block/genhd.c, there are some calls to kobject_uevent() or variants > of it. > > > TIA!! > > There should be something in your boot log about "fd" or "fd0" or floppy. > eh? > > -- > ~Randy