Linux Device Mapper development
 help / color / mirror / Atom feed
From: Alasdair G Kergon <agk@redhat.com>
To: Ric Wheeler <ricwheeler@gmail.com>
Cc: Linux FS Devel <linux-fsdevel@vger.kernel.org>,
	device-mapper development <dm-devel@redhat.com>,
	Karel Zak <kzak@redhat.com>, Jim Meyering <jim@meyering.net>,
	Chris Mason <chris.mason@oracle.com>,
	Josef Bacik <josef@redhat.com>
Subject: Re: [dm-devel] generic wrappers for multi-device FS operations
Date: Tue, 8 Mar 2011 17:43:08 +0000	[thread overview]
Message-ID: <20110308174308.GP10767@agk-dp.fab.redhat.com> (raw)
In-Reply-To: <4D766199.4010307@gmail.com>

On Tue, Mar 08, 2011 at 12:04:25PM -0500, Ric Wheeler wrote:
> To make this trivial to do for users, I think that it would be really 
> nice to have a two-level wrappers for things like resize, add a volume, 
> shrink, etc. Similar to the way we have mount or fsck invoke file system 
> specific bits.
> Good idea? Bad idea?

We began this within LVM some time ago with a script we called 'fsadm'.

http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/LVM2/scripts/fsadm.sh?rev=1.24&content-type=text/plain&cvsroot=lvm2&f=h

Alasdair


fsadm: Utility to resize or check the filesystem on a device

  fsadm [options] check device
    - Check the filesystem on device using fsck

  fsadm [options] resize device [new_size[BKMGTPE]]
    - Change the size of the filesystem on device to new_size

  Options:
    -h | --help         Show this help message
    -v | --verbose      Be verbose
    -e | --ext-offline  unmount filesystem before ext2/ext3/ext4 resize
    -f | --force        Bypass sanity checks
    -n | --dry-run      Print commands without running them
    -l | --lvresize     Resize given device (if it is LVM device)
    -y | --yes          Answer "yes" at any prompts

  new_size - Absolute number of filesystem blocks to be in the filesystem,
             or an absolute size using a suffix (in powers of 1024).
             If new_size is not supplied, the whole device is used.


  reply	other threads:[~2011-03-08 17:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 17:04 generic wrappers for multi-device FS operations Ric Wheeler
2011-03-08 17:43 ` Alasdair G Kergon [this message]
2011-03-08 18:05   ` [dm-devel] " Wendy Cheng
2011-03-08 18:13     ` Ric Wheeler
2011-03-08 18:34       ` James Bottomley
2011-03-08 18:51         ` Ric Wheeler
2011-03-08 20:16         ` Lars Marowsky-Bree
2011-03-08 18:37     ` Josef Bacik
2011-03-08 18:51       ` Ric Wheeler
2011-03-09 14:23     ` Alasdair G Kergon
2011-03-09 15:13       ` Ric Wheeler
2011-03-10 15:28         ` Hannes Reinecke
2011-03-10 15:30           ` Ric Wheeler
2011-03-09 21:36       ` Dave Chinner
2011-03-09 21:49         ` Alasdair G Kergon
2011-03-10  5:04           ` Dave Chinner
2011-03-08 20:54 ` Andreas Dilger
2011-03-08 20:58   ` Ric Wheeler
2011-03-08 22:23     ` Zdenek Kabelac
2011-03-09  2:11   ` Dave Chinner

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=20110308174308.GP10767@agk-dp.fab.redhat.com \
    --to=agk@redhat.com \
    --cc=chris.mason@oracle.com \
    --cc=dm-devel@redhat.com \
    --cc=jim@meyering.net \
    --cc=josef@redhat.com \
    --cc=kzak@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=ricwheeler@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox