FS_IOC_GETFSLABEL
(2const)get or set a filesystem label
#include <linux/fs.h> /* Definition of *FSLABEL* constants */ #include <sys/ioctl.h> int ioctl(int fd, FS_IOC_GETFSLABEL, char label[FSLABEL_MAX]); int ioctl(int fd, FS_IOC_SETFSLABEL, char label[FSLABEL_MAX]);
LIBRARY
DESCRIPTION
RETURN VALUE
ERRORS
STANDARDS
HISTORY
NOTES
The maximum string length for this interface is FSLABEL_MAX, including the terminating null byte ('\0'). Filesystems have differing maximum label lengths, which may or may not include the terminating null. The string provided to FS_IOC_SETFSLABEL must always be null-terminated, and the string returned by FS_IOC_GETFSLABEL will always be null-terminated.