Home
last modified time | relevance | path

Searched refs:BCH_SB_LABEL_SIZE (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dfs-ioctl.c284 char label[BCH_SB_LABEL_SIZE]; in bch2_ioc_getlabel()
286 BUILD_BUG_ON(BCH_SB_LABEL_SIZE >= FSLABEL_MAX); in bch2_ioc_getlabel()
289 memcpy(label, c->disk_sb.sb->label, BCH_SB_LABEL_SIZE); in bch2_ioc_getlabel()
292 len = strnlen(label, BCH_SB_LABEL_SIZE); in bch2_ioc_getlabel()
293 if (len == BCH_SB_LABEL_SIZE) { in bch2_ioc_getlabel()
310 char label[BCH_SB_LABEL_SIZE]; in bch2_ioc_setlabel()
318 if (strnlen(label, BCH_SB_LABEL_SIZE) == BCH_SB_LABEL_SIZE) { in bch2_ioc_setlabel()
321 BCH_SB_LABEL_SIZE - 1); in bch2_ioc_setlabel()
330 strscpy(c->disk_sb.sb->label, label, BCH_SB_LABEL_SIZE); in bch2_ioc_setlabel()
Ddisk_groups_format.h5 #define BCH_SB_LABEL_SIZE 32 macro
8 __u8 label[BCH_SB_LABEL_SIZE];
Ddisk_groups_types.h8 u8 label[BCH_SB_LABEL_SIZE];
Ddisk_groups.c270 if (!namelen || namelen > BCH_SB_LABEL_SIZE) in __bch2_disk_group_find()
297 if (!namelen || namelen > BCH_SB_LABEL_SIZE) in __bch2_disk_group_add()
Dbcachefs_format.h736 __u8 label[BCH_SB_LABEL_SIZE];