udev-builtin-btrfs.c revision 0bb91b50100e4633a0e68135854e606653055748
/*
* btrfs - volume management
*
* Copyright (C) 2012 Kay Sievers <kay@vrfy.org>
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*/
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include "udev.h"
#define BTRFS_PATH_NAME_MAX 4087
struct btrfs_ioctl_vol_args {
};
#define BTRFS_IOCTL_MAGIC 0x94
{
struct btrfs_ioctl_vol_args args;
int fd;
int err;
return EXIT_FAILURE;
if (fd < 0)
return EXIT_FAILURE;
if (err < 0)
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
const struct udev_builtin udev_builtin_btrfs = {
.name = "btrfs",
.cmd = builtin_btrfs,
.help = "btrfs volume management",
};