10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 52900Sfrankho * Common Development and Distribution License (the "License"). 62900Sfrankho * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 220Sstevel@tonic-gate * High Sierra filesystem structure definitions 232900Sfrankho */ 242900Sfrankho /* 254866Sfrankho * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 260Sstevel@tonic-gate * Use is subject to license terms. 270Sstevel@tonic-gate */ 280Sstevel@tonic-gate 290Sstevel@tonic-gate #ifndef _SYS_FS_HSFS_NODE_H 300Sstevel@tonic-gate #define _SYS_FS_HSFS_NODE_H 310Sstevel@tonic-gate 320Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 330Sstevel@tonic-gate 340Sstevel@tonic-gate #ifdef __cplusplus 350Sstevel@tonic-gate extern "C" { 360Sstevel@tonic-gate #endif 370Sstevel@tonic-gate 38*5312Smg147109 #include <sys/taskq.h> 39*5312Smg147109 400Sstevel@tonic-gate struct hs_direntry { 410Sstevel@tonic-gate uint_t ext_lbn; /* LBN of start of extent */ 420Sstevel@tonic-gate uint_t ext_size; /* no. of data bytes in extent */ 430Sstevel@tonic-gate struct timeval cdate; /* creation date */ 440Sstevel@tonic-gate struct timeval mdate; /* last modification date */ 450Sstevel@tonic-gate struct timeval adate; /* last access date */ 460Sstevel@tonic-gate enum vtype type; /* file type */ 470Sstevel@tonic-gate mode_t mode; /* mode and type of file (UNIX) */ 480Sstevel@tonic-gate uint_t nlink; /* no. of links to file */ 490Sstevel@tonic-gate uid_t uid; /* owner's user id */ 500Sstevel@tonic-gate gid_t gid; /* owner's group id */ 514866Sfrankho ino64_t inode; /* inode number from rrip data */ 520Sstevel@tonic-gate dev_t r_dev; /* major/minor device numbers */ 530Sstevel@tonic-gate uint_t xar_prot :1; /* 1 if protection in XAR */ 540Sstevel@tonic-gate uchar_t xar_len; /* no. of Logical blocks in XAR */ 550Sstevel@tonic-gate uchar_t intlf_sz; /* intleaving size */ 560Sstevel@tonic-gate uchar_t intlf_sk; /* intleaving skip factor */ 570Sstevel@tonic-gate ushort_t sym_link_flag; /* flags for sym link */ 580Sstevel@tonic-gate char *sym_link; /* path of sym link for readlink() */ 590Sstevel@tonic-gate }; 600Sstevel@tonic-gate 610Sstevel@tonic-gate struct ptable { 620Sstevel@tonic-gate uchar_t filler[7]; /* filler */ 630Sstevel@tonic-gate uchar_t dname_len; /* length of directory name */ 640Sstevel@tonic-gate uchar_t dname[HS_DIR_NAMELEN+1]; /* directory name */ 650Sstevel@tonic-gate }; 660Sstevel@tonic-gate 670Sstevel@tonic-gate struct ptable_idx { 680Sstevel@tonic-gate struct ptable_idx *idx_pptbl_idx; /* parent's path table index entry */ 690Sstevel@tonic-gate struct ptable *idx_mptbl; /* path table entry for myself */ 700Sstevel@tonic-gate ushort_t idx_nochild; /* no. of children */ 710Sstevel@tonic-gate ushort_t idx_childid; /* directory no of first child */ 720Sstevel@tonic-gate }; 730Sstevel@tonic-gate 740Sstevel@tonic-gate /* 750Sstevel@tonic-gate * hsnode structure: 760Sstevel@tonic-gate * 770Sstevel@tonic-gate * hs_offset, hs_ptbl_idx, base apply to VDIR type only 780Sstevel@tonic-gate * 790Sstevel@tonic-gate * nodeid uniquely identifies an hsnode, ISO9660 means 800Sstevel@tonic-gate * nodeid can be very big. 810Sstevel@tonic-gate * For directories it is the disk address of 820Sstevel@tonic-gate * the data extent of the dir (the directory itself, 830Sstevel@tonic-gate * ".", and ".." all point to same data extent). 840Sstevel@tonic-gate * For non-directories, it is the disk address of the 850Sstevel@tonic-gate * directory entry for the file; note that this does 860Sstevel@tonic-gate * not permit hard links, as it assumes a single dir 870Sstevel@tonic-gate * entry per file. 880Sstevel@tonic-gate */ 890Sstevel@tonic-gate 900Sstevel@tonic-gate struct hsnode { 910Sstevel@tonic-gate struct hsnode *hs_hash; /* next hsnode in hash list */ 920Sstevel@tonic-gate struct hsnode *hs_freef; /* next hsnode in free list */ 930Sstevel@tonic-gate struct hsnode *hs_freeb; /* previous hsnode in free list */ 940Sstevel@tonic-gate struct vnode *hs_vnode; /* the real vnode for the file */ 950Sstevel@tonic-gate struct hs_direntry hs_dirent; /* the directory entry for this file */ 960Sstevel@tonic-gate ino64_t hs_nodeid; /* "inode" number for hsnode */ 970Sstevel@tonic-gate uint_t hs_dir_lbn; /* LBN of directory entry */ 980Sstevel@tonic-gate uint_t hs_dir_off; /* offset in LBN of directory entry */ 990Sstevel@tonic-gate struct ptable_idx *hs_ptbl_idx; /* path table index */ 1000Sstevel@tonic-gate uint_t hs_offset; /* start offset in dir for searching */ 1010Sstevel@tonic-gate long hs_mapcnt; /* mappings to file pages */ 1020Sstevel@tonic-gate uint_t hs_seq; /* sequence number */ 1030Sstevel@tonic-gate uint_t hs_flags; /* (see below) */ 104*5312Smg147109 u_offset_t hs_prev_offset; /* Last read end offset (readahead) */ 105*5312Smg147109 int hs_num_contig; /* Count of contiguous reads */ 106*5312Smg147109 int hs_ra_bytes; /* Bytes to readahead */ 1070Sstevel@tonic-gate kmutex_t hs_contents_lock; /* protects hsnode contents */ 1080Sstevel@tonic-gate /* except hs_offset */ 1090Sstevel@tonic-gate }; 1100Sstevel@tonic-gate 1110Sstevel@tonic-gate /* hs_flags */ 1120Sstevel@tonic-gate #define HREF 1 /* hsnode is referenced */ 1130Sstevel@tonic-gate 1140Sstevel@tonic-gate /* hs_modes */ 1150Sstevel@tonic-gate 1160Sstevel@tonic-gate #define HFDIR 0040000 /* directory */ 1170Sstevel@tonic-gate #define HFREG 0100000 /* regular file */ 1180Sstevel@tonic-gate 1190Sstevel@tonic-gate struct hsfid { 1200Sstevel@tonic-gate ushort_t hf_len; /* length of fid */ 1210Sstevel@tonic-gate ushort_t hf_dir_off; /* offset in LBN of directory entry */ 1220Sstevel@tonic-gate uint_t hf_dir_lbn; /* LBN of directory */ 1234866Sfrankho uint32_t hf_ino; /* The inode number or HS_DUMMY_INO */ 1240Sstevel@tonic-gate }; 1250Sstevel@tonic-gate 1260Sstevel@tonic-gate 1270Sstevel@tonic-gate /* 1280Sstevel@tonic-gate * All of the fields in the hs_volume are read-only once they have been 1290Sstevel@tonic-gate * initialized. 1300Sstevel@tonic-gate */ 1310Sstevel@tonic-gate struct hs_volume { 1320Sstevel@tonic-gate ulong_t vol_size; /* no. of Logical blocks in Volume */ 1330Sstevel@tonic-gate uint_t lbn_size; /* no. of bytes in a block */ 1340Sstevel@tonic-gate uint_t lbn_shift; /* shift to convert lbn to bytes */ 1350Sstevel@tonic-gate uint_t lbn_secshift; /* shift to convert lbn to sec */ 1360Sstevel@tonic-gate uint_t lbn_maxoffset; /* max lbn-relative offset and mask */ 1370Sstevel@tonic-gate uchar_t file_struct_ver; /* version of directory structure */ 1380Sstevel@tonic-gate uid_t vol_uid; /* uid of volume */ 1390Sstevel@tonic-gate gid_t vol_gid; /* gid of volume */ 1400Sstevel@tonic-gate uint_t vol_prot; /* protection (mode) of volume */ 1410Sstevel@tonic-gate struct timeval cre_date; /* volume creation time */ 1420Sstevel@tonic-gate struct timeval mod_date; /* volume modification time */ 1430Sstevel@tonic-gate struct hs_direntry root_dir; /* dir entry for Root Directory */ 1440Sstevel@tonic-gate ushort_t ptbl_len; /* number of bytes in Path Table */ 1450Sstevel@tonic-gate uint_t ptbl_lbn; /* logical block no of Path Table */ 1460Sstevel@tonic-gate ushort_t vol_set_size; /* number of CD in this vol set */ 1470Sstevel@tonic-gate ushort_t vol_set_seq; /* the sequence number of this CD */ 1480Sstevel@tonic-gate char vol_id[32]; /* volume id in PVD */ 1490Sstevel@tonic-gate }; 1500Sstevel@tonic-gate 1510Sstevel@tonic-gate /* 1520Sstevel@tonic-gate * The hsnode table is no longer fixed in size but grows 1530Sstevel@tonic-gate * and shrinks dynamically. However a cache of nodes is still maintained 1540Sstevel@tonic-gate * for efficiency. This cache size (nhsnode) is a tunable which 1550Sstevel@tonic-gate * is either specified in /etc/system or calculated as the number 1560Sstevel@tonic-gate * that will fit into the number of bytes defined by HS_HSNODESPACE (below). 1570Sstevel@tonic-gate */ 1580Sstevel@tonic-gate #define HS_HASHSIZE 32 /* hsnode hash table size */ 1590Sstevel@tonic-gate #define HS_HSNODESPACE 16384 /* approx. space used for hsnodes */ 1600Sstevel@tonic-gate 1610Sstevel@tonic-gate /* 1624866Sfrankho * We usually use the starting extent LBA for the inode numbers of files and 1634866Sfrankho * directories. As this will not work for zero sized files, we assign a dummy 1644866Sfrankho * inode number to all zero sized files. We use the number 16 as this is the 1654866Sfrankho * LBA for the PVD, this number cannot be a valid starting extent LBA for a 1664866Sfrankho * file. In case that the node number is the HS_DUMMY_INO, we use the LBA and 1674866Sfrankho * offset of the directory entry of this file (which is what we used before 1684866Sfrankho * we started to support correct hard links). 1694866Sfrankho */ 1704866Sfrankho #define HS_DUMMY_INO 16 /* dummy inode number for empty files */ 1714866Sfrankho 1724866Sfrankho /* 173*5312Smg147109 * Hsfs I/O Scheduling parameters and data structures. 174*5312Smg147109 * Deadline for reads is set at 5000 usec. 175*5312Smg147109 */ 176*5312Smg147109 #define HSFS_READ_DEADLINE 5000 177*5312Smg147109 #define HSFS_NORMAL 0x0 178*5312Smg147109 179*5312Smg147109 /* 180*5312Smg147109 * This structure holds information for a read request that is enqueued 181*5312Smg147109 * for processing by the scheduling function. An AVL tree is used to 182*5312Smg147109 * access the read requests in a sorted manner. 183*5312Smg147109 */ 184*5312Smg147109 struct hio { 185*5312Smg147109 struct buf *bp; /* The buf for this read */ 186*5312Smg147109 struct hio *contig_chain; /* Next adjacent read if any */ 187*5312Smg147109 offset_t io_lblkno; /* Starting disk block of io */ 188*5312Smg147109 u_offset_t nblocks; /* # disk blocks */ 189*5312Smg147109 uint64_t io_timestamp; /* usec timestamp for deadline */ 190*5312Smg147109 ksema_t *sema; /* Completion flag */ 191*5312Smg147109 avl_node_t io_offset_node; /* Avl tree requirements */ 192*5312Smg147109 avl_node_t io_deadline_node; 193*5312Smg147109 }; 194*5312Smg147109 195*5312Smg147109 /* 196*5312Smg147109 * This structure holds information about all the read requests issued 197*5312Smg147109 * during a read-ahead invocation. This is then enqueued on a task-queue 198*5312Smg147109 * for processing by a background thread that takes this read-ahead to 199*5312Smg147109 * completion and cleans up. 200*5312Smg147109 */ 201*5312Smg147109 struct hio_info { 202*5312Smg147109 struct buf *bufs; /* array of bufs issued for this R/A */ 203*5312Smg147109 caddr_t *vas; /* The kmem_alloced chunk for the bufs */ 204*5312Smg147109 ksema_t *sema; /* Semaphores used in the bufs */ 205*5312Smg147109 uint_t bufsused; /* # of bufs actually used */ 206*5312Smg147109 uint_t bufcnt; /* Tot bufs allocated. */ 207*5312Smg147109 struct page *pp; /* The list of I/O locked pages */ 208*5312Smg147109 struct hsfs *fsp; /* The filesystem structure */ 209*5312Smg147109 }; 210*5312Smg147109 211*5312Smg147109 /* 212*5312Smg147109 * This is per-filesystem structure that stores toplevel data structures for 213*5312Smg147109 * the I/O scheduler. 214*5312Smg147109 */ 215*5312Smg147109 struct hsfs_queue { 216*5312Smg147109 /* 217*5312Smg147109 * A dummy hio holding the LBN of the last read processed. Easy 218*5312Smg147109 * to use in AVL_NEXT for Circular Look behavior. 219*5312Smg147109 */ 220*5312Smg147109 struct hio *next; 221*5312Smg147109 222*5312Smg147109 /* 223*5312Smg147109 * A pre-allocated buf for issuing coalesced reads. The scheduling 224*5312Smg147109 * function is mostly single threaded by necessity. 225*5312Smg147109 */ 226*5312Smg147109 struct buf *nbuf; 227*5312Smg147109 kmutex_t hsfs_queue_lock; /* Protects the AVL trees */ 228*5312Smg147109 229*5312Smg147109 /* 230*5312Smg147109 * Makes most of the scheduling function Single-threaded. 231*5312Smg147109 */ 232*5312Smg147109 kmutex_t strategy_lock; 233*5312Smg147109 avl_tree_t read_tree; /* Reads ordered by LBN */ 234*5312Smg147109 avl_tree_t deadline_tree; /* Reads ordered by timestamp */ 235*5312Smg147109 taskq_t *ra_task; /* Read-ahead Q */ 236*5312Smg147109 int max_ra_bytes; /* Max read-ahead quantum */ 237*5312Smg147109 238*5312Smg147109 /* Device Max Transfer size in DEV_BSIZE */ 239*5312Smg147109 uint_t dev_maxtransfer; 240*5312Smg147109 }; 241*5312Smg147109 242*5312Smg147109 /* 2430Sstevel@tonic-gate * High Sierra filesystem structure. 2440Sstevel@tonic-gate * There is one of these for each mounted High Sierra filesystem. 2450Sstevel@tonic-gate */ 2460Sstevel@tonic-gate enum hs_vol_type { 2472900Sfrankho HS_VOL_TYPE_HS = 0, HS_VOL_TYPE_ISO = 1, HS_VOL_TYPE_ISO_V2 = 2, 2482900Sfrankho HS_VOL_TYPE_JOLIET = 3 2490Sstevel@tonic-gate }; 2500Sstevel@tonic-gate #define HSFS_MAGIC 0x03095500 2510Sstevel@tonic-gate struct hsfs { 2520Sstevel@tonic-gate struct hsfs *hsfs_next; /* ptr to next entry in linked list */ 2530Sstevel@tonic-gate long hsfs_magic; /* should be HSFS_MAGIC */ 2540Sstevel@tonic-gate struct vfs *hsfs_vfs; /* vfs for this fs */ 2550Sstevel@tonic-gate struct vnode *hsfs_rootvp; /* vnode for root of filesystem */ 2560Sstevel@tonic-gate struct vnode *hsfs_devvp; /* device mounted on */ 2572900Sfrankho enum hs_vol_type hsfs_vol_type; /* see above */ 2580Sstevel@tonic-gate struct hs_volume hsfs_vol; /* File Structure Volume Descriptor */ 2590Sstevel@tonic-gate struct ptable *hsfs_ptbl; /* pointer to incore Path Table */ 2600Sstevel@tonic-gate int hsfs_ptbl_size; /* size of incore path table */ 2610Sstevel@tonic-gate struct ptable_idx *hsfs_ptbl_idx; /* pointer to path table index */ 2620Sstevel@tonic-gate int hsfs_ptbl_idx_size; /* no. of path table index */ 2630Sstevel@tonic-gate ulong_t hsfs_ext_impl; /* ext. information bits */ 2640Sstevel@tonic-gate ushort_t hsfs_sua_off; /* the SUA offset */ 2650Sstevel@tonic-gate ushort_t hsfs_namemax; /* maximum file name length */ 2662900Sfrankho ushort_t hsfs_namelen; /* "official" max. file name length */ 2670Sstevel@tonic-gate ulong_t hsfs_err_flags; /* ways in which fs is non-conformant */ 2680Sstevel@tonic-gate char *hsfs_fsmnt; /* name mounted on */ 2690Sstevel@tonic-gate ulong_t hsfs_flags; /* hsfs-specific mount flags */ 2700Sstevel@tonic-gate krwlock_t hsfs_hash_lock; /* protect hash table & hst_nohsnode */ 2710Sstevel@tonic-gate struct hsnode *hsfs_hash[HS_HASHSIZE]; /* head of hash lists */ 2720Sstevel@tonic-gate uint32_t hsfs_nohsnode; /* no. of allocated hsnodes */ 2730Sstevel@tonic-gate kmutex_t hsfs_free_lock; /* protects free list */ 2740Sstevel@tonic-gate struct hsnode *hsfs_free_f; /* first entry of free list */ 2750Sstevel@tonic-gate struct hsnode *hsfs_free_b; /* last entry of free list */ 276*5312Smg147109 277*5312Smg147109 /* 278*5312Smg147109 * Counters exported through kstats. 279*5312Smg147109 */ 280*5312Smg147109 uint64_t physical_read_bytes; 281*5312Smg147109 uint64_t cache_read_pages; 282*5312Smg147109 uint64_t readahead_bytes; 283*5312Smg147109 uint64_t coalesced_bytes; 284*5312Smg147109 uint64_t total_pages_requested; 285*5312Smg147109 kstat_t *hsfs_kstats; 286*5312Smg147109 287*5312Smg147109 struct hsfs_queue *hqueue; /* I/O Scheduling parameters */ 2880Sstevel@tonic-gate }; 2890Sstevel@tonic-gate 2900Sstevel@tonic-gate /* 2910Sstevel@tonic-gate * Error types: bit offsets into hsfs_err_flags. 2920Sstevel@tonic-gate * Also serves as index into hsfs_error[], so must be 2930Sstevel@tonic-gate * kept in sync with that data structure. 2940Sstevel@tonic-gate */ 2952900Sfrankho #define HSFS_ERR_TRAILING_JUNK 0 2962900Sfrankho #define HSFS_ERR_LOWER_CASE_NM 1 2972900Sfrankho #define HSFS_ERR_BAD_ROOT_DIR 2 2982900Sfrankho #define HSFS_ERR_UNSUP_TYPE 3 2992900Sfrankho #define HSFS_ERR_BAD_FILE_LEN 4 3002900Sfrankho #define HSFS_ERR_BAD_JOLIET_FILE_LEN 5 3012900Sfrankho #define HSFS_ERR_TRUNC_JOLIET_FILE_LEN 6 3022900Sfrankho #define HSFS_ERR_BAD_DIR_ENTRY 7 3034866Sfrankho #define HSFS_ERR_NEG_SUA_LEN 8 3044866Sfrankho #define HSFS_ERR_BAD_SUA_LEN 9 3050Sstevel@tonic-gate 3060Sstevel@tonic-gate #define HSFS_HAVE_LOWER_CASE(fsp) \ 3070Sstevel@tonic-gate ((fsp)->hsfs_err_flags & (1 << HSFS_ERR_LOWER_CASE_NM)) 3080Sstevel@tonic-gate 3090Sstevel@tonic-gate 3100Sstevel@tonic-gate /* 3110Sstevel@tonic-gate * File system parameter macros 3120Sstevel@tonic-gate */ 3130Sstevel@tonic-gate #define hs_blksize(HSFS, HSP, OFF) /* file system block size */ \ 3140Sstevel@tonic-gate ((HSP)->hs_vn.v_flag & VROOT ? \ 3150Sstevel@tonic-gate ((OFF) >= \ 3160Sstevel@tonic-gate ((HSFS)->hsfs_rdirsec & ~((HSFS)->hsfs_spcl - 1))*HS_SECSIZE ?\ 3170Sstevel@tonic-gate ((HSFS)->hsfs_rdirsec & ((HSFS)->hsfs_spcl - 1))*HS_SECSIZE :\ 3180Sstevel@tonic-gate (HSFS)->hsfs_clsize): \ 3190Sstevel@tonic-gate (HSFS)->hsfs_clsize) 3200Sstevel@tonic-gate #define hs_blkoff(OFF) /* offset within block */ \ 3210Sstevel@tonic-gate ((OFF) & (HS_SECSIZE - 1)) 3220Sstevel@tonic-gate 3230Sstevel@tonic-gate /* 3240Sstevel@tonic-gate * Conversion macros 3250Sstevel@tonic-gate */ 3260Sstevel@tonic-gate #define VFS_TO_HSFS(VFSP) ((struct hsfs *)(VFSP)->vfs_data) 3270Sstevel@tonic-gate #define HSFS_TO_VFS(FSP) ((FSP)->hsfs_vfs) 3280Sstevel@tonic-gate 3290Sstevel@tonic-gate #define VTOH(VP) ((struct hsnode *)(VP)->v_data) 3300Sstevel@tonic-gate #define HTOV(HP) (((HP)->hs_vnode)) 3310Sstevel@tonic-gate 3320Sstevel@tonic-gate /* 3330Sstevel@tonic-gate * Convert between Logical Block Number and Sector Number. 3340Sstevel@tonic-gate */ 3350Sstevel@tonic-gate #define LBN_TO_SEC(lbn, vfsp) ((lbn)>>((struct hsfs *)((vfsp)->vfs_data))-> \ 3360Sstevel@tonic-gate hsfs_vol.lbn_secshift) 3370Sstevel@tonic-gate 3380Sstevel@tonic-gate #define SEC_TO_LBN(sec, vfsp) ((sec)<<((struct hsfs *)((vfsp)->vfs_data))-> \ 3390Sstevel@tonic-gate hsfs_vol.lbn_secshift) 3400Sstevel@tonic-gate 3410Sstevel@tonic-gate #define LBN_TO_BYTE(lbn, vfsp) ((lbn)<<((struct hsfs *)((vfsp)->vfs_data))-> \ 3420Sstevel@tonic-gate hsfs_vol.lbn_shift) 3430Sstevel@tonic-gate #define BYTE_TO_LBN(boff, vfsp) ((boff)>>((struct hsfs *)((vfsp)->vfs_data))-> \ 3440Sstevel@tonic-gate hsfs_vol.lbn_shift) 3450Sstevel@tonic-gate 3460Sstevel@tonic-gate #ifdef __cplusplus 3470Sstevel@tonic-gate } 3480Sstevel@tonic-gate #endif 3490Sstevel@tonic-gate 3500Sstevel@tonic-gate #endif /* _SYS_FS_HSFS_NODE_H */ 351