Re: Some way of telling which block devices are in use (and how)

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

 



I've been looking more closely at this, and I think we can make things
better by having the file system create a symlink from partition's
holders directory to the file system's kobject (assuming the file
system has a kobject, which most do not have).  i.e., I'd add to
ext4_fill_super() something like this:

	ret = add_symlink(bdev->bd_part->holder_dir, &ext4_kset->kobj);

Currently, the holders directory will show links for md and
devicemapper users of the block device.  This would add a link if ext4
has the block device mounted.

It's not a complete solution, but I think it would help, and as far as
I can tell, it's in the spirit of how the holders directory was
(partially) implemented.

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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux