Home
last modified time | relevance | path

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

/linux-6.1.9/fs/btrfs/
Dsuper.c1213 static int btrfs_parse_subvol_options(const char *options, char **subvol_name, in btrfs_parse_subvol_options() argument
1241 kfree(*subvol_name); in btrfs_parse_subvol_options()
1242 *subvol_name = match_strdup(&args[0]); in btrfs_parse_subvol_options()
1243 if (!*subvol_name) { in btrfs_parse_subvol_options()
1540 const char *subvol_name; in btrfs_show_options() local
1632 subvol_name = btrfs_get_subvol_name_from_objectid(info, in btrfs_show_options()
1634 if (!IS_ERR(subvol_name)) { in btrfs_show_options()
1636 seq_escape(seq, subvol_name, " \t\n\\"); in btrfs_show_options()
1637 kfree(subvol_name); in btrfs_show_options()
1668 static struct dentry *mount_subvol(const char *subvol_name, u64 subvol_objectid, in mount_subvol() argument
[all …]
Dioctl.c3230 char *subvol_name, *subvol_name_ptr = NULL; in btrfs_ioctl_snap_destroy() local
3258 subvol_name = vol_args2->name; in btrfs_ioctl_snap_destroy()
3334 subvol_name = (char *)kbasename(subvol_name_ptr); in btrfs_ioctl_snap_destroy()
3342 subvol_name = vol_args->name; in btrfs_ioctl_snap_destroy()
3349 subvol_namelen = strlen(subvol_name); in btrfs_ioctl_snap_destroy()
3351 if (strchr(subvol_name, '/') || in btrfs_ioctl_snap_destroy()
3352 strncmp(subvol_name, "..", subvol_namelen) == 0) { in btrfs_ioctl_snap_destroy()
3365 dentry = lookup_one(mnt_userns, subvol_name, parent, subvol_namelen); in btrfs_ioctl_snap_destroy()