udev-builtin-btrfs.c revision 9ec6e95b046de71c0198cb9d17acc5462dc76c74
/***
This file is part of systemd.
Copyright 2012 Kay Sievers <kay@vrfy.org>
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.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#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 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",
};