Whamcloud - gitweb
b=14836 Fail if "lfs setstripe" has positional parameters
authorAndreas Dilger <andreas.dilger@oracle.com>
Tue, 23 Nov 2010 21:17:32 +0000 (14:17 -0700)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Tue, 23 Nov 2010 21:35:11 +0000 (00:35 +0300)
commita9650116ab7ccea22a5a8852e7894f28d17edabd
tree2798fdab570faf51f1328de0b20a63ea24331e28
parent8bc17daa978ec635b22ab6505be31626fbb0f3ed
b=14836 Fail if "lfs setstripe" has positional parameters

Since 1.6.1 it has been possible to use named options -c/-i/-s to
specify the layout parameters for "lfs setstripe".

Since 1.8.0 the use of the old positional parameters has generated
a warning that they are deprecated.

The code was set to fail building at 2.1.0.0, so this needs to be
resolved before moving to a release build.  Instead of simply removing
the conditional code, change "lfs setstripe" to return an error if
positional parameters are used.  That would avoid the confusion of
creating files with names of the old {size}, {offset}, and {count}
parameters, instead of returning a meaningful error to the user.
lustre/utils/lfs.c