[illumos-Developer] [REVIEW] 780, 783, 784 gcc build fixes

Richard Lowe richlowe at richlowe.net
Wed Mar 9 12:20:50 PST 2011


2011/3/9 ольга крыжановская <olga.kryzhanovska at gmail.com>:
> +#if defined(__sparc)
> +        if ((cpr_sleeptype == CPR_TODISK &&
> +            !cpr_is_ufs(rootvfs) && !cpr_is_zfs(rootvfs)))
> +                return (ENOTSUP);
> +#endif
>
> What will happen if the root file system is NFS but swap is on a local
> disk? AFAIK this is a supported configuration on SPARC.

It will return ENOTSUP, the same as it did before.
I haven't changed the behaviour, I've just conditionalised the calls to
match the definitions so we no longer rely on the behaviour of the
optimizer.

-- Rich



More information about the Developer mailing list