On Tue, Aug 26, 2008 at 10:47:37PM +0200, Karel Zak wrote:Sure, but consider what happens when you create a snapshot (either read-only or read-write) of an existing filesystem? In that case, both the parent and the child filesystem is mountable, and if the child filesystem is transient, the praent one may not want to be transient. In fact, suppose the scenario is a virtualization scenario, where you create the parent, create child snapshots, then use "tune2fs -U random -L virt1 /dev/mapper/snap1" ; "tune2fs -U random -L virt2 /dev/mapper/snap2" and so on, so each of the child snapshots have their own independent identity separate from the parent, it may very *well* be the case that the parent device should be visible to mount. I don't think we can make the general argument that the leaf device is always mountable, and anything above it is *never* mountable. Maybe that's the default, but it's certainly not always true. I'm beginning the right answer is we need some assist from the device mapper infrastructure, where when we create the device mapper device, we specify whether or not it is mountable, and this information is made available somehow, either by trying to sneaking it into /proc/partitions (which will be tricky without breaking legacy programs), or by making it visible in /sys. Speaking of which, what is your plan for caching versus non-caching in libfsprobe? It seems to me that if you are going to be caching, you'll just be re-inventing blkid. If you don't cache, you'll either (a) have to iterate over all possible devices, which is what we did before blkid (it was Ric Wheeler pointed out to me this problem and I wrote blkid in response to his request, because it becomes a problem if you have hundred of LUN's getting exported by a large EMC storage array :-), or (b) do what vol_id does, which is depend on /dev/disk/by-label and /dev/disk/by-uuid, which has the charming Windows-like attribute of not getting updated until the next reboot --- which means after you create a new filesystem or swap device on an existing device, or change a label or UUID using tune2fs, vol_id never notices until the next reboot or until you physically unplug and reinsert the device. Or is the answer that you expect libfsprobe to only do filesystem type, uuid, and label detection, and not solve the "find a device given a uuid/label" problem? Or maybe the right answer is /proc/partitions should only export devicemapper devices that are "supposed" to be visible to mount, and instead of exporting dm-0, dm-1...., we export the real name via /proc/partitions? Or do you not want to have the user-visible name get pushed into the kernel? - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Florian Lohoff | BUG: scheduling while atomic: ifconfig/0x00000002/4170 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Bryan Woods | Stardom SATA HSM violation |
git: | |
| Abdelrazak Younes | Git-windows and git-svn? |
| Shawn O. Pearce | libgit2 - a true git library |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Bill Lear | Error "fatal: cannot pread pack file: Success" |
| Richard Stallman | Real men don't attack straw men |
| Mark Thomas | [i386/Thinkpad T41]USB mouse + Xorg obsd 4.1 |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Patrick Hemmen | ipsec with carp |
| Johann Baudy | Packet mmap: TX RING and zero copy |
| David Miller | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
