Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv25241/include
Modified Files:
volume.h
Log Message:
Added volume.c code and fixed some typos and inconsistencies.
Index: volume.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/volume.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** volume.h 2001/01/24 02:13:24 1.1
--- volume.h 2001/01/25 14:00:43 1.2
***************
*** 54,58 ****
typedef struct {
int fd; /* File descriptor associated with volume. */
! char *dev_name; /* Name of the device the volume is on. */
char *vol_name; /* Name of the volume from the volume name
attribute. */
--- 54,58 ----
typedef struct {
int fd; /* File descriptor associated with volume. */
! char *dev_name; /* Name of the device/file the volume is in. */
char *vol_name; /* Name of the volume from the volume name
attribute. */
***************
*** 84,88 ****
__s64 number_of_mft_records; /* Number of records in the mft, equals
the number of bits in mft_bitmap. */
! __u16 *up_case[65536]; /* Upper case equivalents of all 65536
2-byte Unicode characters. Obtained
from FILE_$UpCase. */
--- 84,88 ----
__s64 number_of_mft_records; /* Number of records in the mft, equals
the number of bits in mft_bitmap. */
! __u16 *upcase[65536]; /* Upper case equivalents of all 65536
2-byte Unicode characters. Obtained
from FILE_$UpCase. */
***************
*** 98,108 ****
/**
* ntfs_open - open ntfs volume
! * @dev_name: name of device to open
*
! * This function opens an ntfs volume. @dev_name should contain the name
! * of the device to open as the ntfs volume.
*
! * The function opens the device @dev_name and verifies that it contains a
! * valid bootsector. Then, it allocates a ntfs_volume structure and initializes
* some of the values inside the structure from the information stored in the
* bootsector. It proceeds to load the necessary system files and completes
--- 98,108 ----
/**
* ntfs_open - open ntfs volume
! * @name: name of device/file to open
*
! * This function opens an ntfs volume. @name should contain the name of the
! * device/file to open as the ntfs volume.
*
! * The function opens the device or file @name and verifies that it contains a
! * valid bootsector. Then, it allocates an ntfs_volume structure and initializes
* some of the values inside the structure from the information stored in the
* bootsector. It proceeds to load the necessary system files and completes
***************
*** 112,116 ****
* On error, the return value is NULL and errno is set appropriately.
*
! * Note, that a copy is made of @dev_name, and hence it can be discarded as
* soon as the function returns.
*
--- 112,116 ----
* On error, the return value is NULL and errno is set appropriately.
*
! * Note, that a copy is made of @name, and hence it can be discarded as
* soon as the function returns.
*
***************
*** 118,122 ****
* means.
*/
! ntfs_volume *ntfs_open(char *dev_name);
/**
--- 118,122 ----
* means.
*/
! ntfs_volume *ntfs_open(const char *name);
/**
***************
*** 146,150 ****
* means.
*/
! int ntfs_close(ntfs_volume *vol, int force);
#endif /* defined VOLUME_H */
--- 146,150 ----
* means.
*/
! int ntfs_close(ntfs_volume *vol, const int force);
#endif /* defined VOLUME_H */
|