cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Mount agent?

Andy_Tsouladze
Level 3
This is about a (possible) bug in SFRAC 4.0MP1 on Solaris 8.

I have a filesystem that I need to mount using Mount agent. This requires FsckOpt to be set to either `-n' or `-y'. Problem is, this does not work from the command line: I am getting a syntax error (help is displayed), apparently because `-y' is treated as a switch for `hares' rather than a value for `FsckOpt'. I tried three different shells (sh, ksh, tcsh) and a number of tricks, with the following results:

hares -modify mymnt FsckOpt -y
hares -modify mymnt FsckOpt '-y'
hares -modify mymnt FsckOpt "-y"
hares -modify mymnt FsckOpt \-y
All of the above results in a syntax error.

hares -modify mymnt FsckOpt \\-y
hares -modify mymnt FsckOpt '\-y'
hares -modify mymnt FsckOpt "\-y"
All of the above results in the value being set to \-y

As a workaround, I did
hares -modify mymnt FsckOpt " -y"
(with an extra space in front), which is harmless.

Seems like a parsing bug.

Regards,

Andy
2 REPLIES 2

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
Use '%' as escape character insted of '\' or so on.

hares -modify mymnt FsckOpt %-y

will work fine. Try it.

Andy_Tsouladze
Level 3
Thank you for the tip, it does work. However, I still consider this a bug. If Veritas feels this is a feature, they shoud document it. I was not able to find any documentation saying that % is to be used for de-referencing.

Thanks,
Andy