Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the return/exit codes for resize2fs?

Tags:

linux

bash

I'm writing a script to resize my backup image files for my banana pi.

I notice when I man resize2fs, that the man page doesn't contain a section for return/exit codes. I don't think I've come across a man page that didn't have this section.

My google searching has not be helpful at all. Does anybody have any idea what the available return/exit codes are for resize2fs?

like image 580
Deanie Avatar asked Sep 06 '25 06:09

Deanie


1 Answers

Checking the source here. It looks like the only available exit codes are ENOMEM (12), 1 and 0. On a malloc() fail, on other errors, and on success, respectively.

like image 73
ntki Avatar answered Sep 07 '25 19:09

ntki