All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch for fsadm bz 64146
@ 2010-10-29 19:54 Zdenek Kabelac
  2010-10-29 19:56 ` Zdenek Kabelac
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Zdenek Kabelac @ 2010-10-29 19:54 UTC (permalink / raw)
  To: lvm-devel

This patch address problem from  BZ 64146.

Instead of leaving lvresize to fail when running on the mounted fs (user
expects online resize to happen and it's currently possible only with -n
option) - this patch changes 'fsadm check' behavior so it returns success for
mounted  filesystem. This allows lvresize to processed further and run the
online resize even without passing -n option.

Anyone sees this modified behavior of fsadm script as a problem ?
(change success for mounted fs).

Zdenek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fsadm.patch
Type: text/x-patch
Size: 1315 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20101029/5612a977/attachment.bin>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Patch for fsadm bz 64146
  2010-10-29 19:54 Patch for fsadm bz 64146 Zdenek Kabelac
@ 2010-10-29 19:56 ` Zdenek Kabelac
  2010-10-29 19:59 ` Alasdair G Kergon
  2010-10-29 20:44 ` Mike Snitzer
  2 siblings, 0 replies; 7+ messages in thread
From: Zdenek Kabelac @ 2010-10-29 19:56 UTC (permalink / raw)
  To: lvm-devel

Dne 29.10.2010 21:54, Zdenek Kabelac napsal(a):
> This patch address problem from  BZ 64146.

Correct number is 641461

https://bugzilla.redhat.com/show_bug.cgi?id=641461

> 
> Instead of leaving lvresize to fail when running on the mounted fs (user
> expects online resize to happen and it's currently possible only with -n
> option) - this patch changes 'fsadm check' behavior so it returns success for
> mounted  filesystem. This allows lvresize to processed further and run the
> online resize even without passing -n option.
> 
> Anyone sees this modified behavior of fsadm script as a problem ?
> (change success for mounted fs).
> 
> Zdenek
> 
> 
> 
> --
> lvm-devel mailing list
> lvm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/lvm-devel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Patch for fsadm bz 64146
  2010-10-29 19:54 Patch for fsadm bz 64146 Zdenek Kabelac
  2010-10-29 19:56 ` Zdenek Kabelac
@ 2010-10-29 19:59 ` Alasdair G Kergon
  2010-10-29 20:44 ` Mike Snitzer
  2 siblings, 0 replies; 7+ messages in thread
From: Alasdair G Kergon @ 2010-10-29 19:59 UTC (permalink / raw)
  To: lvm-devel

On Fri, Oct 29, 2010 at 09:54:16PM +0200, Zdenek Kabelac wrote:
> Anyone sees this modified behavior of fsadm script as a problem ?
> (change success for mounted fs).
 
This is not my first choice of solution, but in the circumstances
I've no objections to this patch going in.

Ack.

Alasdair



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Patch for fsadm bz 64146
  2010-10-29 19:54 Patch for fsadm bz 64146 Zdenek Kabelac
  2010-10-29 19:56 ` Zdenek Kabelac
  2010-10-29 19:59 ` Alasdair G Kergon
@ 2010-10-29 20:44 ` Mike Snitzer
  2010-10-29 20:56   ` Mike Snitzer
  2 siblings, 1 reply; 7+ messages in thread
From: Mike Snitzer @ 2010-10-29 20:44 UTC (permalink / raw)
  To: lvm-devel

On Fri, Oct 29 2010 at  3:54pm -0400,
Zdenek Kabelac <zkabelac@redhat.com> wrote:

> This patch address problem from  BZ 64146.
> 
> Instead of leaving lvresize to fail when running on the mounted fs (user
> expects online resize to happen and it's currently possible only with -n
> option) - this patch changes 'fsadm check' behavior so it returns success for
> mounted  filesystem. This allows lvresize to processed further and run the
> online resize even without passing -n option.
> 
> Anyone sees this modified behavior of fsadm script as a problem ?
> (change success for mounted fs).
> 
> Zdenek

> Index: scripts/fsadm.sh
> ===================================================================
> RCS file: /cvs/lvm2/LVM2/scripts/fsadm.sh,v
> retrieving revision 1.20
> diff -u -p -r1.20 fsadm.sh
> --- scripts/fsadm.sh	8 Oct 2010 15:02:05 -0000	1.20
> +++ scripts/fsadm.sh	29 Oct 2010 19:43:33 -0000
> @@ -365,7 +365,10 @@ resize() {
>  ###################
>  check() {
>  	detect_fs "$1"
> -	detect_mounted && error "Cannot fsck device \"$VOLUME\", filesystem is mounted on $MOUNTED"
> +	if detect_mounted ; then
> +		verbose "Skipping fsck device \"$VOLUME\" as filesystem is mounted on $MOUNTED";

I think the verbose message should be:
"Skipping fsck for device \"$VOLUME\" as filesystem is mounted on $MOUNTED"

Mike



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Patch for fsadm bz 64146
  2010-10-29 20:44 ` Mike Snitzer
@ 2010-10-29 20:56   ` Mike Snitzer
  2010-10-29 21:26     ` Alasdair G Kergon
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Snitzer @ 2010-10-29 20:56 UTC (permalink / raw)
  To: lvm-devel

On Fri, Oct 29 2010 at  4:44pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:

> On Fri, Oct 29 2010 at  3:54pm -0400,
> Zdenek Kabelac <zkabelac@redhat.com> wrote:
> 
> > -	detect_mounted && error "Cannot fsck device \"$VOLUME\", filesystem is mounted on $MOUNTED"
> > +	if detect_mounted ; then
> > +		verbose "Skipping fsck device \"$VOLUME\" as filesystem is mounted on $MOUNTED";
> 
> I think the verbose message should be:
> "Skipping fsck for device \"$VOLUME\" as filesystem is mounted on $MOUNTED"

"for" could be replaced with "on" or "of" too. ;)

Mike



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Patch for fsadm bz 64146
  2010-10-29 20:56   ` Mike Snitzer
@ 2010-10-29 21:26     ` Alasdair G Kergon
  2010-10-30 16:44       ` Zdenek Kabelac
  0 siblings, 1 reply; 7+ messages in thread
From: Alasdair G Kergon @ 2010-10-29 21:26 UTC (permalink / raw)
  To: lvm-devel

> > "Skipping fsck for device \"$VOLUME\" as filesystem is mounted on $MOUNTED"
> "for" could be replaced with "on" or "of" too. ;)
 
What's fsck?

Alasdair



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Patch for fsadm bz 64146
  2010-10-29 21:26     ` Alasdair G Kergon
@ 2010-10-30 16:44       ` Zdenek Kabelac
  0 siblings, 0 replies; 7+ messages in thread
From: Zdenek Kabelac @ 2010-10-30 16:44 UTC (permalink / raw)
  To: lvm-devel

Dne 29.10.2010 23:26, Alasdair G Kergon napsal(a):
>>> "Skipping fsck for device \"$VOLUME\" as filesystem is mounted on $MOUNTED"
>> "for" could be replaced with "on" or "of" too. ;)
>  
> What's fsck?
> 

I think the tool should be used by system admins - so they should not need the
long version 'filesystem check' - but if it's preferable to avoid shortcut
I'll switch ?

Do we consider now this as a final solution - or do you rather prefer 'non
zero' return code for this case (check of mounted fs). This would require
exec_cmd modification for status passing we've discussed.

I'd rather avoid switching between success/fail return code from the fsadm
command between releases.

Zdenek



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-30 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 19:54 Patch for fsadm bz 64146 Zdenek Kabelac
2010-10-29 19:56 ` Zdenek Kabelac
2010-10-29 19:59 ` Alasdair G Kergon
2010-10-29 20:44 ` Mike Snitzer
2010-10-29 20:56   ` Mike Snitzer
2010-10-29 21:26     ` Alasdair G Kergon
2010-10-30 16:44       ` Zdenek Kabelac

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.