From b4470951ac298e14eb0bfc0bbb2e227fbfe2ba66 Mon Sep 17 00:00:00 2001 From: szaka Date: Fri, 8 Jun 2007 23:11:55 +0000 Subject: [PATCH] remove unused ntfs_device_umount() --- include/ntfs-3g/volume.h | 1 - libntfs-3g/volume.c | 36 ------------------------------------ 2 files changed, 37 deletions(-) diff --git a/include/ntfs-3g/volume.h b/include/ntfs-3g/volume.h index d0872190..e0d6aa06 100644 --- a/include/ntfs-3g/volume.h +++ b/include/ntfs-3g/volume.h @@ -225,7 +225,6 @@ extern ntfs_volume *ntfs_volume_startup(struct ntfs_device *dev, extern ntfs_volume *ntfs_device_mount(struct ntfs_device *dev, unsigned long flags); -extern int ntfs_device_umount(ntfs_volume *vol, const BOOL force); extern ntfs_volume *ntfs_mount(const char *name, unsigned long flags); extern int ntfs_umount(ntfs_volume *vol, const BOOL force); diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index 87f39588..a3ee7ec8 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -1200,42 +1200,6 @@ ntfs_volume *ntfs_mount(const char *name __attribute__((unused)), #endif } -/** - * ntfs_device_umount - close ntfs volume - * @vol: address of ntfs_volume structure of volume to close - * @force: if true force close the volume even if it is busy - * - * Deallocate all structures (including @vol itself) associated with the ntfs - * volume @vol. - * - * Note it is up to the caller to destroy the device associated with the volume - * being unmounted after this function returns. - * - * Return 0 on success. On error return -1 with errno set appropriately - * (most likely to one of EAGAIN, EBUSY or EINVAL). The EAGAIN error means that - * an operation is in progress and if you try the close later the operation - * might be completed and the close succeed. - * - * If @force is true (i.e. not zero) this function will close the volume even - * if this means that data might be lost. - * - * @vol must have previously been returned by a call to ntfs_device_mount(). - * - * @vol itself is deallocated and should no longer be dereferenced after this - * function returns success. If it returns an error then nothing has been done - * so it is safe to continue using @vol. - */ -int ntfs_device_umount(ntfs_volume *vol, - const BOOL force __attribute__((unused))) -{ - if (!vol) { - errno = EINVAL; - return -1; - } - __ntfs_volume_release(vol); - return 0; -} - /** * ntfs_umount - close ntfs volume * @vol: address of ntfs_volume structure of volume to close