Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 25 of 33) sorted by relevance

12

/external/e2fsprogs/lib/blkid/
Ddevno.c94 char **devname) in blkid__scan_dir() argument
119 *devname = blkid_strdup(path); in blkid__scan_dir()
122 path, *devname)); in blkid__scan_dir()
144 char *devname = NULL; in blkid_devno_to_devname() local
159 blkid__scan_dir(current->name, devno, &new_list, &devname); in blkid_devno_to_devname()
162 if (devname) in blkid_devno_to_devname()
176 if (!devname) { in blkid_devno_to_devname()
182 printf("found devno 0x%04llx as %s\n", (long long)devno, devname)); in blkid_devno_to_devname()
186 return devname; in blkid_devno_to_devname()
192 char *devname, *tmp; in main() local
[all …]
Ddevname.c48 blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, int flags) in blkid_get_dev() argument
53 if (!cache || !devname) in blkid_get_dev()
58 if (strcmp(tmp->bid_name, devname)) in blkid_get_dev()
68 if (access(devname, F_OK) < 0) in blkid_get_dev()
74 dev->bid_name = blkid_strdup(devname); in blkid_get_dev()
123 static int is_dm_leaf(const char *devname) in is_dm_leaf() argument
134 !strcmp(de->d_name, devname) || in is_dm_leaf()
142 if (!strcmp(d_de->d_name, devname)) { in is_dm_leaf()
188 char *devname = NULL; in probe_one() local
210 devname = get_dm_name(ptname); in probe_one()
[all …]
Dresolve.c28 const char *devname) in blkid_get_tag_value() argument
35 DBG(DEBUG_RESOLVE, printf("looking for %s on %s\n", tagname, devname)); in blkid_get_tag_value()
37 if (!devname) in blkid_get_tag_value()
45 if ((dev = blkid_get_dev(c, devname, BLKID_DEV_NORMAL)) && in blkid_get_tag_value()
Dtag.c410 char *devname = NULL; in main() local
432 devname = argv[optind++]; in main()
437 if (!devname || (argc != optind)) in main()
446 dev = blkid_get_dev(cache, devname, flags); in main()
449 devname); in main()
DMakefile.in21 OBJS= cache.o dev.o devname.o devno.o getsize.o llseek.o probe.o \
24 SRCS= $(srcdir)/cache.c $(srcdir)/dev.c $(srcdir)/devname.c $(srcdir)/devno.c \
87 tst_devname: $(srcdir)/devname.c $(DEPLIBS_BLKID)
89 $(Q) $(CC) -o tst_devname -DTEST_PROGRAM $(srcdir)/devname.c $(LIBS_BLKID) $(ALL_CFLAGS)
203 devname.o: $(srcdir)/devname.c $(top_builddir)/lib/config.h \
Dblkid.h70 extern blkid_dev blkid_get_dev(blkid_cache cache, const char *devname,
84 const char *devname);
Dblkid.h.in67 /* devname.c */
70 extern blkid_dev blkid_get_dev(blkid_cache cache, const char *devname,
84 const char *devname);
/external/autotest/client/tests/kvm/tests/
Dusb.py42 devname = session.cmd("ls /dev/disk/by-path/* | grep usb").strip()
43 session.cmd("yes | mkfs %s" % devname,
47 session.cmd("mount %s /mnt" % devname)
57 session.cmd("umount %s" % devname)
60 session.cmd("mount %s /mnt" % devname)
74 session.cmd("umount %s" % devname)
Denospc.py127 devname = "/dev/vdb"
130 devname = "/dev/" + re.findall("([sh]db)\s", output)[0]
132 devname = "/dev/sdb"
134 cmd %= devname
/external/blktrace/
Dblkrawverify.c121 static int process(FILE **fp, char *devname, char *file, unsigned int cpu) in process() argument
159 sprintf(ofname, "%s.verify.out", devname); in process()
170 fprintf(*fp, "Verifying %s\n", devname); in process()
278 char *devname; in main() local
292 devname = argv[i]; in main()
293 sprintf(ofname, "%s.verify.out", devname); in main()
296 printf("Verifying %s\n", devname); fflush(stdout); in main()
298 sprintf(fname, "%s.blktrace.%d", devname, cpu); in main()
302 devname); in main()
308 nbad = process(&ofp, devname, fname, cpu); in main()
/external/rootdev/
Drootdev.c372 char devname[PATH_MAX]; in rootdev_wrapper() local
380 res = rootdev_get_device(devname, sizeof(devname), *dev, search); in rootdev_wrapper()
385 rootdev_get_device_slave(devname, sizeof(devname), dev, devname, in rootdev_wrapper()
395 rootdev_strip_partition(devname, size); in rootdev_wrapper()
398 res = rootdev_get_path(path, size, devname, dev_path); in rootdev_wrapper()
/external/e2fsprogs/lib/ext2fs/
Dfinddev.c172 char *devname, *tmp; in main() local
203 devname = ext2fs_find_block_device(device); in main()
204 if (devname) { in main()
205 printf("Found device! %s\n", devname); in main()
206 free(devname); in main()
/external/f2fs-tools/tools/
Dfibmap.c55 char devname[32] = { 0, }; in stat_bdev() local
59 sprintf(devname, "/dev/block/%d:%d", major(st->st_dev), minor(st->st_dev)); in stat_bdev()
61 fd = open(devname, O_RDONLY); in stat_bdev()
75 if (readlink(devname, linkname, sizeof(linkname)) < 0) in stat_bdev()
/external/llvm/test/CodeGen/BPF/
Dex1.ll7 @bpf_prog1.devname = private unnamed_addr constant [3 x i8] c"lo\00", align 1
12 %devname = alloca [3 x i8], align 1
14 %1 = getelementptr inbounds [3 x i8], [3 x i8]* %devname, i64 0, i64 0
15 …8.i64(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @bpf_prog1.devname, i64 0, i64 0), i…
/external/e2fsprogs/misc/
Dblkid.c171 const char *type, *value, *devname; in pretty_print_dev() local
186 devname = blkid_dev_devname(dev); in pretty_print_dev()
187 if (access(devname, F_OK)) in pretty_print_dev()
204 retval = ext2fs_check_mount_point(devname, &mount_flags, in pretty_print_dev()
216 pretty_print_line(devname, fs_type, label, mtpt, uuid); in pretty_print_dev()
/external/autotest/client/site_tests/platform_UdevVars/
Dplatform_UdevVars.py65 devname = os.path.basename(device.device_node)
67 outfile = os.path.join(self.debugdir, "udevattrs.%s" % devname)
71 outfile = os.path.join(self.debugdir, "udevprops.%s" % devname)
/external/e2fsprogs/doc/
Dlibblkid.txt32 if ((devname = blkid_get_devname(cache, attribute_name, value))) {
33 /* do something with devname */
34 string_free(devname);
55 if ((value = blkid_get_tag_value(cache, attribute_name, devname))) {
/external/sl4a/ScriptingLayerForAndroid/jni/
Dcom_googlecode_android_scripting_Exec.cpp36 char* devname; in CreateSubprocess() local
45 ((devname = (char*) ptsname(ptm)) == 0)) { in CreateSubprocess()
59 pts = open(devname, O_RDWR); in CreateSubprocess()
/external/iproute2/ip/
Diptunnel.c475 int devname = 0; in do_prl() local
502 devname++; in do_prl()
515 if (devname == 0) { in do_prl()
526 int devname = 0; in do_6rd() local
554 devname++; in do_6rd()
562 if (devname == 0) { in do_6rd()
/external/libmtp/src/
Dlibusb-glue.c373 char devname[0x10]; in probe_device_descriptor() local
375 devname[0] = '\0'; in probe_device_descriptor()
378 devname, in probe_device_descriptor()
379 sizeof(devname)); in probe_device_descriptor()
380 if (devname[0] != '\0' && strcmp(devname, "usb-storage")) { in probe_device_descriptor()
381 printf("avoid probing device using kernel interface \"%s\"\n", devname); in probe_device_descriptor()
698 char devname[0x10]; in dump_usbinfo() local
701 devname[0] = '\0'; in dump_usbinfo()
702 res = usb_get_driver_np(ptp_usb->handle, (int) ptp_usb->interface, devname, sizeof(devname)); in dump_usbinfo()
703 if (devname[0] != '\0') { in dump_usbinfo()
[all …]
/external/strace/
Dblock.c104 print_quoted_string(p.devname, sizeof(p.devname), in print_blkpg_req()
/external/kernel-headers/original/uapi/linux/
Dblkpg.h54 char devname[BLKPG_DEVNAMELTH]; /* partition name, like sda5 or c0d1p2, member
Dif_frad.h33 char devname[IFNAMSIZ]; member
Dlightnvm.h58 char devname[DISK_NAME_LEN]; member
/external/toybox/toys/pending/
Dlast.c54 static struct arg_list *find_and_dlink(struct arg_list **list, char *devname) in find_and_dlink() argument
61 if (!strncmp(ut->ut_line, devname, UT_LINESIZE)) { in find_and_dlink()

12