Regenerative analysis of a finite buffer fluid queue