]> err.no Git - systemd/commitdiff
[PATCH] udev_volume_id: remove __packed__ from dasd structure as it does not work
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Thu, 10 Feb 2005 04:51:41 +0000 (05:51 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:31:02 +0000 (23:31 -0700)
extras/volume_id/udev_volume_id.c
extras/volume_id/volume_id/dasd/dasd.c
extras/volume_id/volume_id/dasd/dasd.h
udev_utils.c

index d3c3fcd505dab49a01a1fc47d967522d0bbcea66..f04f374c270377a89e5193488d6d02ac08216aa4 100644 (file)
@@ -166,7 +166,7 @@ int main(int argc, char *argv[])
                if (vid == NULL)
                        goto exit;
 
-               if (volume_id_probe_dasd_partition(vid) == 0)
+               if (volume_id_probe_dasd(vid) == 0)
                        goto print;
        }
 
index 4548190ce2eb5141f3e1b6c3df2d38a060d69872..2df6a09e8106a460ce6337cdf65feae2c73b1c18 100644 (file)
@@ -142,7 +142,7 @@ typedef struct dasd_information_t {
        unsigned int confdata_size;
        char characteristics[64];       /* from read_device_characteristics */
        char configuration_data[256];   /* from read_configuration_data */
-} __attribute__((__packed__)) dasd_information_t;
+} dasd_information_t;
 
 #define _IOC_NRBITS            8
 #define _IOC_TYPEBITS          8
@@ -161,7 +161,7 @@ typedef struct dasd_information_t {
 #define BIODASDINFO _IOR(DASD_IOCTL_LETTER,1,dasd_information_t)
 #define BLKSSZGET _IO(0x12,104)
 
-int volume_id_probe_dasd_partition(struct volume_id *id)
+int volume_id_probe_dasd(struct volume_id *id)
 {
        int blocksize;
        dasd_information_t info;
index e7918948c9b224ef9878e9ebf0a41618bdcb9f88..751b9fda6091ce83d88d8e63deb106d8eae4bc12 100644 (file)
@@ -21,6 +21,6 @@
 #ifndef _VOLUME_ID_DASDLABEL_
 #define _VOLUME_ID_DASDLABEL_
 
-extern int volume_id_probe_dasd_partition(struct volume_id *id);
+extern int volume_id_probe_dasd(struct volume_id *id);
 
 #endif
index ca46258def32d2059430c9f75f04586886f7f312..fda1f42f7e0272c8957822a8e2be107b4ba20c9d 100644 (file)
@@ -113,7 +113,7 @@ int create_path(const char *path)
 }
 
 /* Reset permissions on the device node, before unlinking it to make sure,
- * that permisions of possible hard links will be removed to.
+ * that permisions of possible hard links will be removed too.
  */
 int unlink_secure(const char *filename)
 {