All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: linux-fsdevel@vger.kernel.org, Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: Some way of telling which block devices are in use (and how)
Date: Sun, 29 Apr 2012 18:05:12 -0400	[thread overview]
Message-ID: <20120429220512.GC7342@thunk.org> (raw)
In-Reply-To: <20120429212305.GB7342@thunk.org>

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

  reply	other threads:[~2012-04-29 22:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-29 18:57 Some way of telling which block devices are in use (and how) Theodore Ts'o
2012-04-29 20:18 ` Greg KH
2012-04-29 21:23   ` Ted Ts'o
2012-04-29 22:05     ` Ted Ts'o [this message]
2012-04-30  5:10       ` Greg KH
2012-04-30  9:11         ` Ted Ts'o
2012-04-30 16:21           ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120429220512.GC7342@thunk.org \
    --to=tytso@mit.edu \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.