The San Francisco 49ers and cornerback Carlos Rogers have reached agreement on a four-year deal worth close to $30 million, a source told ESPN.com senior NFL writer John Clayton