Home
last modified time | relevance | path

Searched refs:EXT4_LABEL_MAX (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/fs/ext4/
Dioctl.c40 BUILD_BUG_ON(sizeof(es->s_volume_name) < EXT4_LABEL_MAX); in ext4_sb_setlabel()
42 memcpy(es->s_volume_name, (char *)arg, EXT4_LABEL_MAX); in ext4_sb_setlabel()
1092 char new_label[EXT4_LABEL_MAX + 1]; in ext4_ioctl_setlabel()
1103 if (copy_from_user(new_label, user_label, EXT4_LABEL_MAX + 1)) in ext4_ioctl_setlabel()
1106 len = strnlen(new_label, EXT4_LABEL_MAX + 1); in ext4_ioctl_setlabel()
1107 if (len > EXT4_LABEL_MAX) in ext4_ioctl_setlabel()
1113 memset(new_label + len, 0, EXT4_LABEL_MAX - len); in ext4_ioctl_setlabel()
1127 char label[EXT4_LABEL_MAX + 1]; in ext4_ioctl_getlabel()
1134 BUILD_BUG_ON(EXT4_LABEL_MAX >= FSLABEL_MAX); in ext4_ioctl_getlabel()
1138 strncpy(label, sbi->s_es->s_volume_name, EXT4_LABEL_MAX); in ext4_ioctl_getlabel()
Dext4.h1314 #define EXT4_LABEL_MAX 16 macro
1365 /*78*/ char s_volume_name[EXT4_LABEL_MAX]; /* volume name */