57 #include <sys/fs/hsfs_impl.h>
58 #include <sys/fs/hsfs_susp.h>
59 #include <sys/fs/hsfs_rrip.h>
60
61 #include <sys/statvfs.h>
62 #include <sys/mount.h>
63 #include <sys/swap.h>
64 #include <sys/errno.h>
65 #include <sys/debug.h>
66 #include "fs/fs_subr.h"
67 #include <sys/cmn_err.h>
68
69 static void form_time(int, uchar_t *, struct timeval *);
70 static void name_parse(int, uchar_t *, size_t, uchar_t *, int *,
71 ulong_t *, int);
72
73 /*
74 * Signature table for RRIP
75 */
76 ext_signature_t rrip_signature_table[ ] = {
77 RRIP_CL, rrip_child_link,
78 RRIP_NM, rrip_name,
79 RRIP_PL, rrip_parent_link,
80 RRIP_PN, rrip_dev_nodes,
81 RRIP_PX, rrip_file_attr,
82 RRIP_RE, rrip_reloc_dir,
83 RRIP_RR, rrip_rock_ridge,
84 RRIP_SL, rrip_sym_link,
85 RRIP_TF, rrip_file_time,
86 (char *)NULL, NULL
87 };
88
89
90 /*
91 * rrip_dev_nodes()
92 *
93 * sig_handler() for RRIP signature "PN"
94 *
95 * This function parses out the major and minor numbers from the "PN
96 * " SUF.
97 */
98 uchar_t *
99 rrip_dev_nodes(sig_args_t *sig_args_p)
100 {
101 uchar_t *pn_ptr = sig_args_p->SUF_ptr;
102 major_t major_dev = (major_t)RRIP_MAJOR(pn_ptr);
103 minor_t minor_dev = (minor_t)RRIP_MINOR(pn_ptr);
104
105 sig_args_p->hdp->r_dev = makedevice(major_dev, minor_dev);
106
|
57 #include <sys/fs/hsfs_impl.h>
58 #include <sys/fs/hsfs_susp.h>
59 #include <sys/fs/hsfs_rrip.h>
60
61 #include <sys/statvfs.h>
62 #include <sys/mount.h>
63 #include <sys/swap.h>
64 #include <sys/errno.h>
65 #include <sys/debug.h>
66 #include "fs/fs_subr.h"
67 #include <sys/cmn_err.h>
68
69 static void form_time(int, uchar_t *, struct timeval *);
70 static void name_parse(int, uchar_t *, size_t, uchar_t *, int *,
71 ulong_t *, int);
72
73 /*
74 * Signature table for RRIP
75 */
76 ext_signature_t rrip_signature_table[ ] = {
77 { RRIP_CL, rrip_child_link },
78 { RRIP_NM, rrip_name },
79 { RRIP_PL, rrip_parent_link },
80 { RRIP_PN, rrip_dev_nodes },
81 { RRIP_PX, rrip_file_attr },
82 { RRIP_RE, rrip_reloc_dir },
83 { RRIP_RR, rrip_rock_ridge },
84 { RRIP_SL, rrip_sym_link },
85 { RRIP_TF, rrip_file_time },
86 { NULL, NULL }
87 };
88
89
90 /*
91 * rrip_dev_nodes()
92 *
93 * sig_handler() for RRIP signature "PN"
94 *
95 * This function parses out the major and minor numbers from the "PN
96 * " SUF.
97 */
98 uchar_t *
99 rrip_dev_nodes(sig_args_t *sig_args_p)
100 {
101 uchar_t *pn_ptr = sig_args_p->SUF_ptr;
102 major_t major_dev = (major_t)RRIP_MAJOR(pn_ptr);
103 minor_t minor_dev = (minor_t)RRIP_MINOR(pn_ptr);
104
105 sig_args_p->hdp->r_dev = makedevice(major_dev, minor_dev);
106
|