----- Original Message ----- > From: "Tommi Virtanen" <tommi.virtanen@xxxxxxxxxxxxx> > > The value in returning the number that *would have been written* is in > that now the caller can reallocate a buffer of exactly the right size > (barring races). Like snprintf() and friends. With just a generic > -ENOBUFS/-EMSGSIZE/whatever you cram in there, the caller must do a > series of increasing guesses. > Thanks for the feedback. I ended up using -ERANGE, and allow naddr=0 for querying the actual size. -Noah -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html