Message ID | 20250312064541.664334-6-hch@lst.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/17] xfs/177: force a small file system size | expand |
On Wed, Mar 12, 2025 at 07:44:57AM +0100, Christoph Hellwig wrote: > That way it can also be used for RT and log devices. Do you mean "That way callers can pass SCRATCH_RTDEV directly without needing to check for zero-length themselves"? --D > > Signed-off-by: Christoph Hellwig <hch@lst.de> > --- > common/rc | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/common/rc b/common/rc > index 753e86f91a04..b0131526380a 100644 > --- a/common/rc > +++ b/common/rc > @@ -2545,8 +2545,7 @@ _require_non_zoned_device() > { > local target=$1 > if [ -z $target ]; then > - echo "Usage: _require_non_zoned_device <device>" > - exit 1 > + return > fi > > local type=`_zone_type ${target}` > -- > 2.45.2 > >
diff --git a/common/rc b/common/rc index 753e86f91a04..b0131526380a 100644 --- a/common/rc +++ b/common/rc @@ -2545,8 +2545,7 @@ _require_non_zoned_device() { local target=$1 if [ -z $target ]; then - echo "Usage: _require_non_zoned_device <device>" - exit 1 + return fi local type=`_zone_type ${target}`
That way it can also be used for RT and log devices. Signed-off-by: Christoph Hellwig <hch@lst.de> --- common/rc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)