Lines Matching refs:fd
57 int fd;
58 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) {
68 if (ioctl(fd, DM_LIST_DEVICES, io)) {
72 close(fd);
80 close(fd);
91 if (ioctl(fd, DM_DEV_STATUS, io2)) {
113 close(fd);
140 int fd;
141 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) {
150 if (ioctl(fd, DM_DEV_STATUS, io)) {
155 close(fd);
158 close(fd);
174 int fd;
175 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) {
186 if (ioctl(fd, DM_DEV_CREATE, io)) {
189 close(fd);
201 if (ioctl(fd, DM_DEV_SET_GEOMETRY, io)) {
204 close(fd);
210 if (ioctl(fd, DM_DEV_STATUS, io)) {
213 close(fd);
241 if (ioctl(fd, DM_TABLE_LOAD, io)) {
244 close(fd);
251 if (ioctl(fd, DM_DEV_SUSPEND, io)) {
254 close(fd);
260 close(fd);
271 int fd;
272 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) {
283 if (ioctl(fd, DM_DEV_REMOVE, io)) {
288 close(fd);
293 close(fd);